org.apache.directory.server.core.partition.impl.btree
Class Tuple

java.lang.Object
  extended by org.apache.directory.server.core.partition.impl.btree.Tuple

public class Tuple
extends java.lang.Object

A key/value tuple for simple two column Tables. Implemented to provide independence from the Jdbm Tuple class. Key and value copying should be performed to transpose jdbm.helper.Tuple data into our generic Tuple.

Version:
$Rev: 434579 $
Author:
Apache Directory Project

Constructor Summary
Tuple()
          Do nothing default that has a null key and null value.
Tuple(java.lang.Object key, java.lang.Object value)
          Creates a Tuple using a key and a value.
 
Method Summary
 java.lang.Object getKey()
          Gets the key for this Tuple.
 java.lang.Object getValue()
          Gets the value for this Tuple.
 void setKey(java.lang.Object key)
          Sets the key for this Tuple.
 void setValue(java.lang.Object value)
          Sets the value for this Tuple.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple()
Do nothing default that has a null key and null value.


Tuple

public Tuple(java.lang.Object key,
             java.lang.Object value)
Creates a Tuple using a key and a value.

Parameters:
key - the key to set
value - the value to set
Method Detail

getKey

public java.lang.Object getKey()
Gets the key for this Tuple.

Returns:
the Tuple's key

setKey

public void setKey(java.lang.Object key)
Sets the key for this Tuple.

Parameters:
key - the new key to set

getValue

public java.lang.Object getValue()
Gets the value for this Tuple.

Returns:
the Tuple's value

setValue

public void setValue(java.lang.Object value)
Sets the value for this Tuple.

Parameters:
value - the new value to set


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.