public class DefaultQueryCollection extends Object implements QueryCollection
QueryCollection| Constructor and Description |
|---|
DefaultQueryCollection() |
DefaultQueryCollection(Set<QueryContext> queries) |
DefaultQueryCollection(TreeSet<QueryContext> treeSet) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(QueryContext query)
add the given query to existing queries
|
boolean |
addAll(Set<QueryContext> queries) |
Set<QueryContext> |
getQueries() |
Set<QueryContext> |
getQueries(String user) |
int |
getQueriesCount() |
Integer |
getQueryIndex(QueryContext query)
Since the collection is a linkedHashSet, the order of queries is always maintained.
|
boolean |
remove(QueryContext query)
removes given query from existing queries
|
boolean |
removeAll(Set<QueryContext> queries) |
String |
toString() |
public DefaultQueryCollection()
public DefaultQueryCollection(@NonNull
Set<QueryContext> queries)
public DefaultQueryCollection(TreeSet<QueryContext> treeSet)
public boolean add(QueryContext query)
MutableQueryCollectionadd in interface MutableQueryCollectionpublic boolean addAll(Set<QueryContext> queries)
addAll in interface MutableQueryCollectionpublic boolean remove(QueryContext query)
MutableQueryCollectionremove in interface MutableQueryCollectionpublic boolean removeAll(Set<QueryContext> queries)
removeAll in interface MutableQueryCollectionpublic Set<QueryContext> getQueries()
getQueries in interface ImmutableQueryCollectionpublic Set<QueryContext> getQueries(String user)
getQueries in interface ImmutableQueryCollectionuser - User for whom queries have to be returned.public int getQueriesCount()
getQueriesCount in interface ImmutableQueryCollectionpublic Integer getQueryIndex(QueryContext query)
getQueryIndex in interface ImmutableQueryCollectionquery - @Generated(value="lombok") public String toString()
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.