Package org.rspeer.game.query.results
Class WorldQueryResults
- java.lang.Object
-
- org.rspeer.game.query.results.QueryResults<World,WorldQueryResults>
-
- org.rspeer.game.query.results.WorldQueryResults
-
- All Implemented Interfaces:
Iterable<World>
,Collection<World>
,SelfTyped<WorldQueryResults>
public class WorldQueryResults extends QueryResults<World,WorldQueryResults>
-
-
Constructor Summary
Constructors Constructor Description WorldQueryResults(Collection<World> results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hopNext()
boolean
hopPrevious()
WorldQueryResults
self()
WorldQueryResults
sortById(boolean ascending)
WorldQueryResults
sortByPing()
WorldQueryResults
sortByPopulation(boolean ascending)
-
Methods inherited from class org.rspeer.game.query.results.QueryResults
accept, add, addAll, asList, clear, contains, containsAll, first, get, indexOf, isEmpty, iterator, last, lastIndexOf, limit, limit, map, random, remove, removeAll, retainAll, reverse, shuffle, size, sort, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
-
-
-
Constructor Detail
-
WorldQueryResults
public WorldQueryResults(Collection<World> results)
-
-
Method Detail
-
self
public WorldQueryResults self()
-
sortById
public final WorldQueryResults sortById(boolean ascending)
-
sortByPopulation
public final WorldQueryResults sortByPopulation(boolean ascending)
-
sortByPing
public final WorldQueryResults sortByPing()
-
hopNext
public final boolean hopNext()
-
hopPrevious
public final boolean hopPrevious()
-
-