TKey
- the type of the keyTValue
- the type of the valuepublic class KeyValuePair<TKey,TValue> extends Object
Constructor and Description |
---|
KeyValuePair(TKey key,
TValue value)
Construct a KeyValuePair with the given key and the corresponding value.
|
Modifier and Type | Method and Description |
---|---|
TKey |
getKey()
Retrieves the key of the KeyValuePair
|
TValue |
getValue()
Retrieves the value of the KeyValuePair
|