public class KeyValuePair<TKey,TValue>
extends java.lang.Object
Constructor and Description |
---|
KeyValuePair(TKey key,
TValue value)
Initializes a new instance of the KeyValuePair<,> structure with the specified key and value.
|
Modifier and Type | Method and Description |
---|---|
TKey |
getKey()
Gets the key in the key/value pair.
|
TValue |
getValue()
Gets the value in the key/value pair.
|
java.lang.String |
ToString()
Returns a string representation of the KeyValuePair<,>, using the string representations of the key and value.
|
public TKey getKey()
public TValue getValue()
public java.lang.String ToString()