Package mc.core.model.cc
Class State.StateComparator
java.lang.Object
mc.core.model.cc.State.StateComparator
- All Implemented Interfaces:
Comparator<State>
- Enclosing class:
- State
compares two states first by their state group (locale indepenedent state groups first, then ordered by display
in given locale), if same state group and locale dependent, compares by locale display, then by state group type.
states must be attached!
-
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
-
StateComparator
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<State>
-