Top Description Methods
org.apache.commons.collections4

public Interface KeyValue<K, V>

Known Direct Implementers
org.apache.commons.collections4.bidimap.TreeBidiMap.Node, org.apache.commons.collections4.keyvalue.AbstractKeyValue, org.apache.commons.collections4.keyvalue.AbstractMapEntryDecorator, org.apache.commons.collections4.keyvalue.TiedMapEntry, org.apache.commons.collections4.map.AbstractHashedMap.HashEntry, org.apache.commons.collections4.map.SingletonMap, org.apache.commons.collections4.map.StaticBucketMap.Node
Type Parameters
<K>
the type of the key
<V>
the type of the value

Defines a simple key value pair.

A Map Entry has considerable additional semantics over and above a simple key-value pair. This interface defines the minimum key value, with just the two get methods.

Since
3.0

Method Summary

Modifier and TypeMethod and Description
public K

Returns:

the key
getKey
()

Gets the key from the pair.

public V

Returns:

the value
getValue
()

Gets the value from the pair.

Method Detail

getKeyback to summary
public K getKey()

Gets the key from the pair.

Returns:K

the key

getValueback to summary
public V getValue()

Gets the value from the pair.

Returns:V

the value