|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.cursor.Tuple<K,V>
K - The key type for the TupleV - The associated Value typepublic class Tuple<K,V>
A key/value tuple for simple two column persistent Tables with sorted keys.
| Constructor Summary | |
|---|---|
Tuple()
Do nothing default that has a null key and null value. |
|
Tuple(K key,
V value)
Creates a Tuple using a key and a value. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
K |
getKey()
Gets the key for this Tuple. |
V |
getValue()
Gets the value for this Tuple. |
int |
hashCode()
|
Tuple<K,V> |
setBoth(K key,
V value)
Sets both the key and the value for this Tuple in one call and returns this Tuple object. |
Tuple<K,V> |
setBoth(Tuple<K,V> tupleToCopy)
Sets both the key and the value for this Tuple in one call and returns this Tuple object. |
Tuple<K,V> |
setKey(K key)
Sets the key for this Tuple. |
Tuple<K,V> |
setValue(V value)
Sets the value for this Tuple. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Tuple()
public Tuple(K key,
V value)
key - the key to setvalue - the value to set| Method Detail |
|---|
public K getKey()
public Tuple<K,V> setKey(K key)
key - the new key to set
public V getValue()
public Tuple<K,V> setValue(V value)
value - the new value to set
public Tuple<K,V> setBoth(K key,
V value)
key - the new key to setvalue - the new value to set
public Tuple<K,V> setBoth(Tuple<K,V> tupleToCopy)
tupleToCopy - the tuple to copy
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||