Package net.storm.api.query.results
Class ItemQueryResults
java.lang.Object
net.storm.api.query.results.QueryResults<IItem,ItemQueryResults>
net.storm.api.query.results.ItemQueryResults
- All Implemented Interfaces:
Iterable<IItem>,Collection<IItem>
Result container for item queries.
This class extends QueryResults to provide a type-safe container for
item query results. It inherits all manipulation methods from the parent class
such as sorting, limiting, filtering, and random selection.
Example usage:
ItemQueryResults results = itemQuery.results();
IItem firstItem = results.first();
IItem randomItem = results.random();
List<IItem> allItems = results.list();
-
Field Summary
Fields inherited from class net.storm.api.query.results.QueryResults
results -
Constructor Summary
ConstructorsConstructorDescriptionItemQueryResults(List<IItem> results) Constructs a new ItemQueryResults wrapper around the specified list of items. -
Method Summary
Methods inherited from class net.storm.api.query.results.QueryResults
accept, add, addAll, clear, contains, containsAll, first, get, indexOf, isEmpty, isNotEmpty, iterator, last, lastIndexOf, limit, limit, list, random, remove, removeAll, retainAll, reversed, shuffled, size, sorted, toArray, toArrayMethods 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
-
Constructor Details
-
ItemQueryResults
Constructs a new ItemQueryResults wrapper around the specified list of items.- Parameters:
results- the list of items to wrap
-