Class StringLengthComparator
java.lang.Object
com.djrapitops.plan.utilities.comparators.StringLengthComparator
- All Implemented Interfaces:
Comparator<String>
Compares Strings and sorts them by length (Longest fist).
-
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
-
StringLengthComparator
public StringLengthComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
-