public class QueryResult<T>
extends java.lang.Object
implements java.util.Collection<T>
Modifier and Type | Field and Description |
---|---|
protected APIContext |
ctx |
Constructor and Description |
---|
QueryResult(java.util.List<T> objects,
APIContext ctx) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T obj) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object obj) |
boolean |
containsAll(java.util.Collection<?> c) |
T |
first() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
T |
last() |
QueryResult<T> |
limit(int amount) |
QueryResult<T> |
limit(int startIndex,
int amount) |
T |
random() |
boolean |
remove(java.lang.Object obj) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
retainAll(java.util.Collection<?> c) |
QueryResult<T> |
reverse() |
QueryResult<T> |
shuffle() |
int |
size() |
QueryResult<T> |
sort(java.util.Comparator<? super T> comparator) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
java.util.List<T> |
toList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected APIContext ctx
public QueryResult(java.util.List<T> objects, APIContext ctx)
public int size()
size
in interface java.util.Collection<T>
public boolean isEmpty()
isEmpty
in interface java.util.Collection<T>
public boolean contains(java.lang.Object obj)
contains
in interface java.util.Collection<T>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<T>
public java.util.Iterator<T> iterator()
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
public <T> T[] toArray(T[] array)
toArray
in interface java.util.Collection<T>
public java.util.List<T> toList()
public boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
public boolean remove(java.lang.Object obj)
remove
in interface java.util.Collection<T>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<T>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<T>
public void clear()
clear
in interface java.util.Collection<T>
public QueryResult<T> limit(int amount)
public QueryResult<T> limit(int startIndex, int amount)
public QueryResult<T> sort(java.util.Comparator<? super T> comparator)
public QueryResult<T> reverse()
public QueryResult<T> shuffle()
public T random()
public T first()
public T last()