|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.zkoss.util.Pair
public class Pair
A pair of keys. It is used with DualHashSet and DualHashMap to represent a pair of keys as an object.
| Field Summary | |
|---|---|
Object |
x
The first key. |
Object |
y
The second key. |
| Constructor Summary | |
|---|---|
protected |
Pair()
|
|
Pair(Object x,
Object y)
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
Object |
getX()
Returns the first value of the pair. |
Object |
getY()
Returns the second value of the pair. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final Object x
public final Object y
| Constructor Detail |
|---|
public Pair(Object x,
Object y)
protected Pair()
| Method Detail |
|---|
public Object getX()
public Object getY()
public final boolean equals(Object o)
equals in class Objectpublic final int hashCode()
hashCode 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 | |||||||||