Package games.stendhal.common.parser
Class ArrayLengthDescSorter<T extends ArrayList<?>>
java.lang.Object
games.stendhal.common.parser.ArrayLengthDescSorter<T>
- Type Parameters:
T
- ArrayList
- All Implemented Interfaces:
Comparator<T>
sorts a array lists based on the length, the order of
list with the same length is undefined but consistent.
-
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
-
ArrayLengthDescSorter
public ArrayLengthDescSorter()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T extends ArrayList<?>>
-