Class Tuple<K,V>
java.lang.Object
org.apache.directory.api.ldap.model.cursor.Tuple<K,V>
- Type Parameters:
K- The key type for the TupleV- The associated Value type
A key/value tuple for simple two column persistent Tables with sorted keys.
- Author:
- Apache Directory Project
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()Gets the key for this Tuple.getValue()Gets the value for this Tuple.inthashCode()Sets both the key and the value for this Tuple in one call and returns this Tuple object.Sets both the key and the value for this Tuple in one call and returns this Tuple object.Sets the key for this Tuple.Sets the value for this Tuple.toString()
-
Constructor Details
-
Tuple
public Tuple()Do nothing default that has a null key and null value. -
Tuple
-
-
Method Details
-
getKey
-
setKey
-
getValue
-
setValue
-
setBoth
Sets both the key and the value for this Tuple in one call and returns this Tuple object. This is useful for setting the tuples key and value then returning it.- Parameters:
key- the new key to setvalue- the new value to set- Returns:
- this Tuple itself to set and return
-
setBoth
-
hashCode
-
equals
-
toString
-