Class AlphanumComparator
java.lang.Object
de.pirckheimer_gymnasium.engine_pi.util.AlphanumComparator
- All Implemented Interfaces:
Comparator<String>
This is an updated version with enhancements made by Daniel Migowski, Andre
Bogus, and David Koelle. Updated by David Koelle in 2017.
To use this class: Use the static "sort" method from the java.util.Collections class: Collections.sort(your list, new AlphanumComparator());
-
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
-
AlphanumComparator
public AlphanumComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<String>
-
compareTo
-