Class CollatorComparator<T>
java.lang.Object
de.bsvrz.sys.funclib.kappich.collections.CollatorComparator<T>
- All Implemented Interfaces:
java.util.Comparator<T>
public final class CollatorComparator<T>
extends java.lang.Object
implements java.util.Comparator<T>
Optimierung Sortierung nach einem Collator
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CollatorComparator.SortKey
-
Constructor Summary
Constructors Constructor Description CollatorComparator(java.util.function.Function<T,java.lang.String> toStringFunction, java.util.Locale locale)
-
Method Summary
Modifier and Type Method Description int
compare(T o1, T o2)
CollatorComparator.SortKey
getSortKey(T o)
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