jdbm.helper
Class Tuple<K,V>

java.lang.Object
  extended by jdbm.helper.Tuple<K,V>

public final class Tuple<K,V>
extends java.lang.Object

Tuple consisting of a key-value pair.

Version:
$Id: Tuple.java,v 1.2 2001/05/19 14:02:00 boisvert Exp $
Author:
Alex Boisvert

Constructor Summary
Tuple()
          Construct an empty Tuple.
Tuple(K key, V value)
          Construct a Tuple.
 
Method Summary
 K getKey()
          Get the key.
 V getValue()
          Get the value.
 void setKey(K key)
          Set the key.
 void setValue(V value)
          Set the value.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tuple

public Tuple()
Construct an empty Tuple.


Tuple

public Tuple(K key,
             V value)
Construct a Tuple.

Parameters:
key - The key.
value - The value.
Method Detail

getKey

public K getKey()
Get the key.


setKey

public void setKey(K key)
Set the key.


getValue

public V getValue()
Get the value.


setValue

public void setValue(V value)
Set the value.



Cees de Groot (C) 2000. All rights reserved http://jdbm.sourceforge.net