DATATYPE - The type of elements to be compared.public final class ComparatorHasName<DATATYPE extends IHasName> extends AbstractCollationComparator<DATATYPE>
Comparator for objects that implement
the IHasName interface.| Constructor and Description |
|---|
ComparatorHasName(Locale aSortLocale) |
ComparatorHasName(Locale aSortLocale,
ESortOrder eSortOrder) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
asString(DATATYPE aObject)
Abstract method that needs to be overridden to convert an object to a
string representation for comparison.
|
mainCompare, toStringcompare, getSortOrder, setSortOrderclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalspublic ComparatorHasName(@Nullable Locale aSortLocale, @Nonnull ESortOrder eSortOrder)
protected String asString(DATATYPE aObject)
AbstractCollationComparatorasString in class AbstractCollationComparator<DATATYPE extends IHasName>aObject - The object to be converted. May not be null depending
on the elements to be sorted.null.Copyright © 2006–2015 phloc systems. All rights reserved.