Package org.rspeer.game.query.results
Class SceneNodeQueryResults<T extends SceneNode>
- java.lang.Object
-
- org.rspeer.game.query.results.QueryResults<T,SceneNodeQueryResults<T>>
-
- org.rspeer.game.query.results.SceneNodeQueryResults<T>
-
- All Implemented Interfaces:
Iterable<T>
,Collection<T>
,SelfTyped<SceneNodeQueryResults<T>>
public class SceneNodeQueryResults<T extends SceneNode> extends QueryResults<T,SceneNodeQueryResults<T>>
-
-
Constructor Summary
Constructors Constructor Description SceneNodeQueryResults(Collection<T> results)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
furthest()
T
furthest(DistanceEvaluator evaluator)
T
furthestFrom(DistanceEvaluator evaluator, SceneNode entity)
T
furthestFrom(SceneNode entity)
T
nearest()
T
nearest(DistanceEvaluator evaluator)
T
nearestTo(DistanceEvaluator evaluator, SceneNode entity)
T
nearestTo(SceneNode entity)
SceneNodeQueryResults<T>
self()
SceneNodeQueryResults<T>
sortByDistance()
SceneNodeQueryResults<T>
sortByDistance(DistanceEvaluator eval)
SceneNodeQueryResults<T>
sortByDistanceFrom(DistanceEvaluator eval, SceneNode src)
SceneNodeQueryResults<T>
sortByDistanceFrom(SceneNode src)
-
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
-
SceneNodeQueryResults
public SceneNodeQueryResults(Collection<T> results)
-
-
Method Detail
-
sortByDistanceFrom
public final SceneNodeQueryResults<T> sortByDistanceFrom(DistanceEvaluator eval, SceneNode src)
-
sortByDistanceFrom
public final SceneNodeQueryResults<T> sortByDistanceFrom(SceneNode src)
-
sortByDistance
public final SceneNodeQueryResults<T> sortByDistance(DistanceEvaluator eval)
-
sortByDistance
public final SceneNodeQueryResults<T> sortByDistance()
-
nearest
public final T nearest()
-
furthest
public final T furthest()
-
nearest
public final T nearest(DistanceEvaluator evaluator)
-
furthest
public final T furthest(DistanceEvaluator evaluator)
-
nearestTo
public final T nearestTo(DistanceEvaluator evaluator, SceneNode entity)
-
furthestFrom
public final T furthestFrom(DistanceEvaluator evaluator, SceneNode entity)
-
self
public SceneNodeQueryResults<T> self()
-
-