Package org.zkoss.util
Class Pair<X,Y>
- java.lang.Object
-
- org.zkoss.util.Pair<X,Y>
-
- All Implemented Interfaces:
java.io.Serializable
public class Pair<X,Y> extends java.lang.Object implements java.io.SerializableA pair of keys. It is used with DualHashSet and DualHashMap to represent a pair of keys as an object.- Author:
- tomyeh
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)XgetX()Returns the first value of the pair.YgetY()Returns the second value of the pair.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
getX
public X getX()
Returns the first value of the pair.
-
getY
public Y getY()
Returns the second value of the pair.
-
equals
public final boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-