|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.mff.ksi.jinfer.base.objects.ImmutablePair<S,T>
S - Type argument of the first object in the pair.T - Type argument of the second object in the pair.public class ImmutablePair<S,T>
Class representing a generic 2-tuple. Immutable class.
| Constructor Summary | |
|---|---|
ImmutablePair(S first,
T second)
Full constructor. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
S |
getFirst()
Returns the first member of this pair. |
T |
getSecond()
Returns the second member of this pair. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ImmutablePair(S first,
T second)
first - First member of this pair.second - Second member of this pair.| Method Detail |
|---|
public S getFirst()
Pair
getFirst in interface Pair<S,T>public T getSecond()
Pair
getSecond in interface Pair<S,T>public String toString()
toString in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||