DATATYPE - The type of elements to be compared.@NotThreadSafe public class ComparatorHasSimpleIntID<DATATYPE extends IHasIntID> extends AbstractIntComparator<DATATYPE>
Comparator for objects that implement the
IHasIntID interface.| Constructor and Description |
|---|
ComparatorHasSimpleIntID()
Comparator with default sort order and no nested comparator.
|
| Modifier and Type | Method and Description |
|---|---|
protected int |
getAsInt(DATATYPE aObject)
Protected method to convert the passed object into an int value.
|
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, thenComparingLongpublic ComparatorHasSimpleIntID()
protected int getAsInt(@Nonnull DATATYPE aObject)
AbstractIntComparatorgetAsInt in class AbstractIntComparator<DATATYPE extends IHasIntID>aObject - The source objectCopyright © 2014–2015 Philip Helger. All rights reserved.