|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ajaest.lib.data.Pair<E1,E2>
E1
- First elementE2
- Second elementpublic class Pair<E1,E2>
Generic class that stores two elements.
Field Summary | |
---|---|
private E1 |
first
|
private E2 |
second
|
Constructor Summary | |
---|---|
Pair(E1 first,
E2 second)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
E1 |
getFirst()
Returns the first element.Read the constructor or class info for further information about the meaning of "first". |
E2 |
getSecond()
Returns the second element.Read the constructor or class info for further information about the meaning of "second". |
int |
hashCode()
|
void |
setFirst(E1 first)
Stores the first element overriding the previous one.Read the constructor or class info for further information about the meaning of "first". |
void |
setSecond(E2 second)
Stores the second element replacing any element stored before.Read the constructor or class info for further information about the meaning of "second". |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private E1 first
private E2 second
Constructor Detail |
---|
public Pair(E1 first, E2 second)
Method Detail |
---|
public E1 getFirst()
public void setFirst(E1 first)
first
- public E2 getSecond()
public void setSecond(E2 second)
second
- public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |