Package net.storm.api.query.results
Class QueryResults<T,R>
java.lang.Object
net.storm.api.query.results.QueryResults<T,R>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
ItemQueryResults,SceneEntityQueryResults,WidgetQueryResults
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanbooleanbooleanaddAll(Collection<? extends T> c) voidclear()booleanbooleancontainsAll(Collection<?> c) first()get(int index) intbooleanisEmpty()booleaniterator()final Tlast()intlastIndexOf(T o) final Rlimit(int entries) final Rlimit(int startIndex, int amount) list()final Trandom()booleanbooleanremoveAll(Collection<?> c) booleanretainAll(Collection<?> c) final Rreversed()final Rshuffled()intsize()final Rsorted(Comparator<? super T> comparator) Object[]toArray()T[]Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
results
-
-
Constructor Details
-
QueryResults
-
-
Method Details
-
get
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
isNotEmpty
public boolean isNotEmpty() -
sorted
-
lastIndexOf
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
limit
-
list
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
reversed
-
first
-
indexOf
-
accept
-
random
-
contains
- Specified by:
containsin interfaceCollection<T>
-
shuffled
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
iterator
-
limit
-
last
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-