|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.server.xdbm.Tuple<K,V>
public 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 | |
---|---|
K |
getKey()
Gets the key for this Tuple. |
V |
getValue()
Gets the value for this Tuple. |
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. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Tuple()
public Tuple(K key, V value)
key
- the key to setvalue
- the value to setMethod 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 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 |