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