Package com.luciad.util
Class TLcdPair<K,V>
java.lang.Object
com.luciad.util.TLcdPair<K,V>
- Type Parameters:
K
- the key typeV
- the value type
A simple key-value pair. Instances of this class are immutable, thus thread-safe.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
TLcdPair
Creates a new key-value pair.- Parameters:
aKey
- the keyaValue
- the value
-
-
Method Details
-
getKey
Gets the key.- Returns:
- the key
-
getValue
Gets the value.- Returns:
- the value
-
hashCode
public int hashCode()Computes the hash code for this pair. -
equals
Checks a given object for equality. Returnsfalse
if the given object isnull
or not a pair. -
toString
Creates a string representation of this pair.
-