DATATYPE - The type of elements to be compared.@NotThreadSafe public class CollatingComparatorHasDisplayName<DATATYPE extends IHasDisplayName> extends AbstractCollatingComparator<DATATYPE>
Comparator for objects that implement
the IHasDisplayName interface.| Constructor and Description |
|---|
CollatingComparatorHasDisplayName(Locale aSortLocale)
Comparator with default sort order but special collation locale.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPart(DATATYPE aObject)
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, thenComparingLongprotected String getPart(@Nonnull DATATYPE aObject)
AbstractPartComparatorgetPart in class AbstractPartComparator<DATATYPE extends IHasDisplayName,String>aObject - The object to be compared. Never null.null.Copyright © 2014–2015 Philip Helger. All rights reserved.