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 Object
public K getKey()
public V getValue()
public int hashCode()
hashCode
in class Object
public void setKey(K key)
key
- The new keypublic void setValue(V value)
value
- The new valuepublic String toString()
toString
in class Object
Copyright © 2010-2020 Toolsverse. All Rights Reserved.