DATATYPE - the type of object to be compared@NotThreadSafe public abstract class AbstractCollatingComparator<DATATYPE> extends AbstractPartComparator<DATATYPE,String>
Comparator that uses
collations for ordering. This is only necessary when comparing strings.| Constructor and Description |
|---|
AbstractCollatingComparator(Collator aCollator)
Constructor with
Collator using the default sort order |
AbstractCollatingComparator(Locale aSortLocale)
Comparator with default sort order and specified sort locale.
|
| Modifier and Type | Method and Description |
|---|---|
Collator |
getCollator() |
getPart, getPartComparator, mainCompare, toStringcompare, getNestedComparator, getSortOrder, isNullValuesComeFirst, setNestedComparator, setNullValuesComeFirst, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic AbstractCollatingComparator(@Nullable Locale aSortLocale)
aSortLocale - The locale to use. May be null.@Nonnull @ReturnsMutableCopy public final Collator getCollator()
Collator as passed or created in the
constructor. Never null.Copyright © 2014–2016 Philip Helger. All rights reserved.