K
- the key typeV
- the value typepublic class TLcdPair<K,V> extends Object
Constructor and Description |
---|
TLcdPair(K aKey,
V aValue)
Creates a new key-value pair.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object aObj)
Checks a given object for equality.
|
K |
getKey()
Gets the key.
|
V |
getValue()
Gets the value.
|
int |
hashCode()
Computes the hash code for this pair.
|
String |
toString()
Creates a string representation of this pair.
|
public K getKey()
public V getValue()
public int hashCode()
public boolean equals(Object aObj)
false
if the given object is null
or not a pair.