|
JAPI 0_6-alpha-2 Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.japi.util.Pair<T1,T2>
public class Pair<T1,T2>
Lightweight class for data pairs. The hashcode of a pair is the combined hashcode of its values.
| Constructor Summary | |
|---|---|
Pair(T1 first,
T2 second)
Create a Pair. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
T1 |
getFirst()
Get first member of this pair. |
T2 |
getSecond()
Get second member of this pair. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(T1 first,
T2 second)
first - First data elementsecond - Second data element| Method Detail |
|---|
public T1 getFirst()
public T2 getSecond()
public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
JAPI Yet another Java API API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||