|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.util.lang.Pair<A,B>
public class Pair<A,B>
Constructor Summary | |
---|---|
Pair()
Contructs a pair holding two null values. |
|
Pair(A a,
B b)
Contructs a pair holding the given objects. |
|
Pair(Pair<A,B> p)
Contructs a pair holding the objects of the given pair. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
A |
getFirst()
|
B |
getSecond()
|
int |
hashCode()
|
void |
setFirst(A first)
|
void |
setSecond(B second)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pair()
public Pair(A a, B b)
public Pair(Pair<A,B> p)
Method Detail |
---|
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public A getFirst()
public void setFirst(A first)
first
- The first object to set.public B getSecond()
public void setSecond(B second)
second
- The second objet to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |