|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.eos.util.Pair<F,S>
F
- the type of the first valueS
- the type of the second valuepublic final class Pair<F,S>
A class to store a pair of generic types. Use with care as keys in maps
.
Constructor Summary | |
---|---|
Pair(F first,
S second)
Creates a new pair. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
F |
getFirst()
Returns the first value of the pair. |
S |
getSecond()
Returns the second value of the pair. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pair(@Nullable F first, @Nullable S second)
first
- the first value of this pairsecond
- the second value of this pairMethod Detail |
---|
public F getFirst()
public S getSecond()
public int hashCode()
hashCode
in class Object
public boolean equals(@Nullable Object other)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |