@NotThreadSafe public class CollatingComparatorToString extends AbstractCollatingComparator<Object>
| Constructor and Description |
|---|
CollatingComparatorToString(Collator aCollator)
Constructor with
Collator using the default sort order |
CollatingComparatorToString(Locale aSortLocale)
Comparator with default sort order and specified sort locale.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPart(Object aValue)
Implement this method to extract the part to compare from the original
object.
|
getCollatorgetPartComparator, 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 CollatingComparatorToString(@Nullable Locale aSortLocale)
aSortLocale - The locale to use. May be null.protected String getPart(@Nullable Object aValue)
AbstractPartComparatorgetPart in class AbstractPartComparator<Object,String>aValue - The object to be compared. Never null.null.Copyright © 2014–2016 Philip Helger. All rights reserved.