|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.maryanovsky.gwtutils.client.Pair
public final class Pair
A wrapper for any two other given objects.
| Constructor Summary | |
|---|---|
Pair(Object first,
Object second)
Creates a new Pair with the two given objects. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true iff the given Object is a Pair, and its two objects are the same as this one's (comparison done via Utilities.areEqual) |
Object |
getFirst()
Returns the first object. |
Object |
getSecond()
Returns the second object. |
int |
hashCode()
Returns a hashcode combined from the hashcodes of the two target objects. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(Object first,
Object second)
Pair with the two given objects. Either of the
objects may be null.
| Method Detail |
|---|
public Object getFirst()
public Object getSecond()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
Utilities.areEqual)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||