|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectSystem.Collections.Generic.KeyValuePair<TKey,TValue>
public class KeyValuePair<TKey,TValue>
Defines a key/value pair that can be set or retrieved.
Constructor Summary | |
---|---|
KeyValuePair(TKey key,
TValue value)
Initializes a new instance of the KeyValuePair<,> structure with the specified key and value. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyValuePair(TKey key, TValue value)
key
- The definition associated with key.value
- The definition associated with value.Method Detail |
---|
public TKey getKey()
public TValue getValue()
public java.lang.String ToString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |