com.strangegizmo.cdb
Class CdbElement

java.lang.Object
  |
  +--com.strangegizmo.cdb.CdbElement

public final class CdbElement
extends java.lang.Object

CdbElement represents a single element in a constant database.


Constructor Summary
CdbElement(byte[] key, byte[] data)
          Creates an instance of the CdbElement class and initializes it with the given key and data values.
 
Method Summary
 byte[] getData()
          Returns this element's data.
 byte[] getKey()
          Returns this element's key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CdbElement

public CdbElement(byte[] key,
                  byte[] data)
Creates an instance of the CdbElement class and initializes it with the given key and data values.
Parameters:
key - The key value for this element.
data - The data value for this element.
Method Detail

getKey

public final byte[] getKey()
Returns this element's key.
Returns:
This element's key.

getData

public final byte[] getData()
Returns this element's data.
Returns:
This element's data.