- java.lang.Object
- 
- javafx.util.Pair<K,V>
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class Pair<K,V> extends Object implements Serializable A convenience class to represent name-value pairs. - Since:
- JavaFX 2.0
- See Also:
- Serialized Form
 
- 
- 
Method Detail- 
getKeypublic K getKey() Gets the key for this pair.- Returns:
- key for this pair
 
 - 
getValuepublic V getValue() Gets the value for this pair.- Returns:
- value for this pair
 
 - 
toStringpublic String toString() Stringrepresentation of thisPair.The default name/value delimiter '=' is always used. 
 - 
hashCodepublic int hashCode() Generate a hash code for this Pair.The hash code is calculated using both the name and the value of the Pair.
 - 
equalspublic boolean equals(Object o) Test this Pairfor equality with anotherObject.If the Objectto be tested is not aPairor isnull, then this method returnsfalse.Two Pairs are considered equal if and only if both the names and values are equal.
 
- 
 
-