|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcore.Tuple<K,V>
public class Tuple<K,V>
A generic key-value tuple.
Constructor Summary | |
---|---|
Tuple(K key,
V value)
Creates a new tuple. |
Method Summary | |
---|---|
K |
getKey()
Returns the key |
V |
getValue()
Returns the value |
java.lang.String |
toString()
Returns a string representation of the tuple |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tuple(K key, V value)
key
- The key of the tuplevalue
- The value of the tupleMethod Detail |
---|
public K getKey()
public V getValue()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |