Package mc.core.model.base
Class HrcEntity.HrcEntityComparator
java.lang.Object
mc.core.model.base.HrcEntity.HrcEntityComparator
- All Implemented Interfaces:
Comparator<HrcEntity>
- Enclosing class:
- HrcEntity
Sorts
HrcEntity objects by priority, then their display string. Entities with different parents are
sorted according to their parents sort order.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
HrcEntityComparator
- Parameters:
locale- Locale to determine and compare display string. Used when priorities are equal and the display string serves as tie-breaker.
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<HrcEntity>
-