Class EntityYComparator
java.lang.Object
de.gurkenlabs.litiengine.entities.EntityYComparator
- All Implemented Interfaces:
Comparator<IEntity>
This
Comparator implementation sorts entities by the max y-coordinate of their collision box (if its a
ICollisionEntity) or of their bounding box.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
EntityYComparator
public EntityYComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<IEntity>
-