DATA1TYPE - First type.DATA2TYPE - Second type.public interface IPair<DATA1TYPE,DATA2TYPE> extends Serializable
| Modifier and Type | Method and Description |
|---|---|
static <T1 extends Comparable<? super T1>,T2> |
getComparatorFirst() |
static <T1,T2 extends Comparable<? super T2>> |
getComparatorSecond() |
DATA1TYPE |
getFirst() |
DATA2TYPE |
getSecond() |
DATA1TYPE getFirst()
null depending on the
implementation.DATA2TYPE getSecond()
null depending on the
implementation.@Nonnull static <T1 extends Comparable<? super T1>,T2> Comparator<IPair<T1,T2>> getComparatorFirst()
@Nonnull static <T1,T2 extends Comparable<? super T2>> Comparator<IPair<T1,T2>> getComparatorSecond()
Copyright © 2014–2017 Philip Helger. All rights reserved.