candy.conf
Class Index

java.lang.Object
  |
  +--candy.core.candyObject
        |
        +--candy.conf.Index
All Implemented Interfaces:
net.jini.core.entry.Entry, java.io.Serializable

public class Index
extends candyObject

a candyObject (entry for the JavaSpace) that represents either the Head or Tail of a Member's Channel

See Also:
Serialized Form

Field Summary
 java.lang.String channel
          identifier for this Channel (MemberID of owner)
 java.lang.Integer position
          current position (index) in Channel
 java.lang.String type
          identifier as to whether this is the Head or Tail
 
Fields inherited from class candy.core.candyObject
description, handle, timestamp
 
Constructor Summary
Index()
           
Index(java.lang.String type, java.lang.String channel)
           
Index(java.lang.String type, java.lang.String channel, java.lang.Integer position)
           
 
Method Summary
 java.lang.String getChannel()
           
 java.lang.Integer getPosition()
           
 void increment()
           
 
Methods inherited from class candy.core.candyObject
getDescription, getHandle, setDescription, setHandle
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

public java.lang.String type
identifier as to whether this is the Head or Tail

channel

public java.lang.String channel
identifier for this Channel (MemberID of owner)

position

public java.lang.Integer position
current position (index) in Channel
Constructor Detail

Index

public Index()

Index

public Index(java.lang.String type,
             java.lang.String channel)

Index

public Index(java.lang.String type,
             java.lang.String channel,
             java.lang.Integer position)
Method Detail

getChannel

public java.lang.String getChannel()

getPosition

public java.lang.Integer getPosition()

increment

public void increment()