Package net.storm.api.query.results
Class WidgetQueryResults
java.lang.Object
net.storm.api.query.results.QueryResults<IWidget,WidgetQueryResults>
net.storm.api.query.results.WidgetQueryResults
- All Implemented Interfaces:
Iterable<IWidget>,Collection<IWidget>
Result container for widget queries.
This class extends QueryResults to provide a type-safe container for
widget query results. It inherits all manipulation methods from the parent class
such as sorting, limiting, filtering, and random selection.
Example usage:
WidgetQueryResults results = widgetQuery.results();
IWidget firstWidget = results.first();
IWidget randomWidget = results.random();
List<IWidget> allWidgets = results.list();
-
Field Summary
Fields inherited from class net.storm.api.query.results.QueryResults
results -
Constructor Summary
ConstructorsConstructorDescriptionWidgetQueryResults(List<IWidget> results) Constructs a new WidgetQueryResults wrapper around the specified list of widgets. -
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
-
WidgetQueryResults
Constructs a new WidgetQueryResults wrapper around the specified list of widgets.- Parameters:
results- the list of widgets to wrap
-