Class AlphaNumericComparator
java.lang.Object
com.kingsrook.qqq.backend.core.utils.collections.AlphaNumericComparator
- All Implemented Interfaces:
Comparator<String>
Comparator for strings that are a mix of alpha + numeric, where we want to
sort the numeric substrings like numbers.
e.g., A1, A2, A10 won't come out as A1, A10, A2
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AlphaNumericComparator
public AlphaNumericComparator()
-
-
Method Details
-
compare
compare 2 Strings- Specified by:
comparein interfaceComparator<String>
-