K - the key typeV - the value typepublic class TypedKeyValue<K,V>
extends Object
implements Serializable
| Constructor and Description |
|---|
TypedKeyValue()
Instantiates a new key-value pair.
|
TypedKeyValue(K key,
V value)
Instantiates a new key-value pair.
|
public boolean equals(Object compareTo)
equals in class Objectpublic K getKey()
public V getValue()
public int hashCode()
hashCode in class Objectpublic void setKey(K key)
key - The new keypublic void setValue(V value)
value - The new valuepublic String toString()
toString in class ObjectCopyright © 2010-2020 Toolsverse. All Rights Reserved.