Package gaiasky.util.comp
Class DistanceEntityComparator<T>
java.lang.Object
gaiasky.util.comp.DistanceEntityComparator<T>
- Type Parameters:
T
- The type of entity to compare.
- All Implemented Interfaces:
Comparator<T>
Compares entities with respect to their distance to the camera.
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
DistanceEntityComparator
public DistanceEntityComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-