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