DATATYPE - The type of elements to be compared.@NotThreadSafe public class ComparatorHasName<DATATYPE extends IHasName> extends AbstractPartComparatorComparable<DATATYPE,String>
Comparator for objects that
implement the IHasName interface.| Constructor and Description |
|---|
ComparatorHasName() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getPart(DATATYPE aObject)
Implement this method to extract the part to compare from the original
object.
|
mainComparecompare, getNestedComparator, getSortOrder, isNullValuesComeFirst, setNestedComparator, setNullValuesComeFirst, setSortOrder, toStringclone, 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)
AbstractPartComparatorComparablegetPart in class AbstractPartComparatorComparable<DATATYPE extends IHasName,String>aObject - The object to be compared. Never null.null.Copyright © 2014–2015 Philip Helger. All rights reserved.