|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--ostore.util.Pair
To avoid making a whole bunch of two member classes.
| Field Summary | |
|---|---|
Object |
first
|
Object |
second
|
| Constructor Summary | |
|---|---|
Pair()
Default constructor |
|
Pair(Object f,
Object s)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
Object |
first()
Returns the first element of the pair. |
int |
hashCode()
|
Object |
second()
Returns the second element of the pair. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public Object first
public Object second
| Constructor Detail |
public Pair()
public Pair(Object f,
Object s)
f - == first object of the pairs - == second object of the pair| Method Detail |
public final Object first()
public final Object second()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||