Interface jada.tuple.TupleItem
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jada.tuple.TupleItem

public interface TupleItem
extends Object
Base tuple item class.
If you want to use a class as a tuple item you have to implement this interface in your class.
The methods dumpItem() and buildItem() are really needed if you plan to use a TupleClient as tuple space.
NOTE:
  • a class that implements TupleItem MUST have a default constructor
  • a class that implements TupleItem MUST be public

    Method Index

     o buildItem(byte[])
    Builds an item from a byte array representation.
     o cloneItem(Object)
    Clone this item from a "source" one.
     o dumpItem()
    Returns a byte array representation for this item; if it is not possible for the item to do that the method returns null.
     o matchesItem(Object)
    Returns true if this item matches the given one.

    Methods

     o dumpItem
      public abstract byte[] dumpItem()
    
    Returns a byte array representation for this item; if it is not possible for the item to do that the method returns null.
     o buildItem
      public abstract boolean buildItem(byte b[])
    
    Builds an item from a byte array representation.
     o cloneItem
      public abstract void cloneItem(Object source)
    
    Clone this item from a "source" one.
     o matchesItem
      public abstract boolean matchesItem(Object match)
    
    Returns true if this item matches the given one.

    All Packages  Class Hierarchy  This Package  Previous  Next  Index