public class Pair<F,S> extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Pair.DefaultLexicographicPairComparator<F extends Comparable<F>,S extends Comparable<S>> |
static class |
Pair.FirstComparator<S extends Comparable<? super S>,T> |
static class |
Pair.LexicographicPairComparator<F,S> |
static class |
Pair.ReverseFirstComparator<S extends Comparable<? super S>,T> |
static class |
Pair.ReverseSecondComparator<S,T extends Comparable<? super T>> |
static class |
Pair.SecondComparator<S,T extends Comparable<? super T>> |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
F |
getFirst() |
S |
getSecond() |
int |
hashCode() |
static <S,T> Pair<S,T> |
makePair(S first,
T second) |
static <S,T> Pair<S,T> |
newPair(S first,
T second) |
Pair<S,F> |
reverse() |
void |
setFirst(F pFirst) |
void |
setSecond(S pSecond) |
String |
toString() |
Copyright © 2014. All Rights Reserved.