gov.sandia.cognition.util
Interface KeyValuePair<KeyType,ValueType>

Type Parameters:
KeyType - The type of the key.
ValueType - The type of the value.
All Superinterfaces:
Pair<KeyType,ValueType>, Serializable
All Known Implementing Classes:
DefaultKeyValuePair

public interface KeyValuePair<KeyType,ValueType>
extends Pair<KeyType,ValueType>

Represents a key-value pair. The key is the first element in the pair and the value is the second.

Since:
3.1
Author:
Justin Basilico

Method Summary
 KeyType getKey()
          Gets the key part of the key-value pair.
 ValueType getValue()
          Gets the value part of the key-value pair.
 
Methods inherited from interface gov.sandia.cognition.util.Pair
getFirst, getSecond
 

Method Detail

getKey

KeyType getKey()
Gets the key part of the key-value pair.

Returns:
The key.

getValue

ValueType getValue()
Gets the value part of the key-value pair.

Returns:
The value.