java.lang.Object
org.refcodes.textual.NumberSuffixComparator
- All Implemented Interfaces:
Comparator<String>
- Direct Known Subclasses:
NumberSuffixComparatorSingleton
Comparator for strings with prefixed numbers taking into account the value(!)
of the prefixed number:
Eg. "foo1" < "foo10"
-
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
-
NumberSuffixComparator
public NumberSuffixComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<String>
-