DATA1TYPE - pair first typeDATA2TYPE - pair second type@NotThreadSafe public class ComparatorPairFirstComparable<DATA1TYPE extends Comparable<? super DATA1TYPE>,DATA2TYPE> extends AbstractPartComparatorComparable<IPair<DATA1TYPE,DATA2TYPE>,DATA1TYPE>
IPair objects by the first element| Constructor and Description |
|---|
ComparatorPairFirstComparable() |
| Modifier and Type | Method and Description |
|---|---|
protected DATA1TYPE |
getPart(IPair<DATA1TYPE,DATA2TYPE> 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, thenComparingLong@Nullable protected DATA1TYPE getPart(@Nonnull IPair<DATA1TYPE,DATA2TYPE> aObject)
AbstractPartComparatorComparablegetPart in class AbstractPartComparatorComparable<IPair<DATA1TYPE extends Comparable<? super DATA1TYPE>,DATA2TYPE>,DATA1TYPE extends Comparable<? super DATA1TYPE>>aObject - The object to be compared. Never null.null.Copyright © 2014–2015 Philip Helger. All rights reserved.