Rice Pastry API

rice.persistence.testing
Class MemoryStorageTest.VariableId

java.lang.Object
  extended byrice.persistence.testing.MemoryStorageTest.VariableId
All Implemented Interfaces:
java.lang.Comparable, Id, java.io.Serializable
Enclosing class:
MemoryStorageTest

public class MemoryStorageTest.VariableId
extends java.lang.Object
implements Id

DESCRIBE THE CLASS

Version:
$Id: pretty.settings 2305 2005-03-11 20:22:33Z jeffh $
Author:
jeffh
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class rice.p2p.commonapi.Id
Id.Distance
 
Field Summary
protected  int num
          DESCRIBE THE FIELD
static java.lang.String STRING
          DESCRIBE THE FIELD
static short TYPE
          DESCRIBE THE FIELD
 
Constructor Summary
MemoryStorageTest.VariableId(int num)
          Constructor for VariableId.
 
Method Summary
 Id addToId(Id.Distance offset)
          Adds a feature to the ToId attribute of the VariableId object
 boolean clockwise(Id nid)
          DESCRIBE THE METHOD
 int compareTo(java.lang.Object o)
          DESCRIBE THE METHOD
 Id.Distance distanceFromId(Id nid)
          DESCRIBE THE METHOD
 int getByteArrayLength()
          Gets the ByteArrayLength attribute of the VariableId object
 short getType()
          Gets the Type attribute of the VariableId object
 boolean isBetween(Id ccw, Id cw)
          Gets the Between attribute of the VariableId object
 Id.Distance longDistanceFromId(Id nid)
          DESCRIBE THE METHOD
 void serialize(OutputBuffer buf)
          DESCRIBE THE METHOD
 byte[] toByteArray()
          DESCRIBE THE METHOD
 void toByteArray(byte[] array, int offset)
          DESCRIBE THE METHOD
 java.lang.String toStringFull()
          DESCRIBE THE METHOD
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

num

protected int num
DESCRIBE THE FIELD


TYPE

public static final short TYPE
DESCRIBE THE FIELD

See Also:
Constant Field Values

STRING

public static final java.lang.String STRING
DESCRIBE THE FIELD

See Also:
Constant Field Values
Constructor Detail

MemoryStorageTest.VariableId

public MemoryStorageTest.VariableId(int num)
Constructor for VariableId.

Parameters:
num - DESCRIBE THE PARAMETER
Method Detail

isBetween

public boolean isBetween(Id ccw,
                         Id cw)
Gets the Between attribute of the VariableId object

Specified by:
isBetween in interface Id
Parameters:
ccw - DESCRIBE THE PARAMETER
cw - DESCRIBE THE PARAMETER
Returns:
The Between value

getByteArrayLength

public int getByteArrayLength()
Gets the ByteArrayLength attribute of the VariableId object

Specified by:
getByteArrayLength in interface Id
Returns:
The ByteArrayLength value

getType

public short getType()
Gets the Type attribute of the VariableId object

Specified by:
getType in interface Id
Returns:
The Type value

clockwise

public boolean clockwise(Id nid)
DESCRIBE THE METHOD

Specified by:
clockwise in interface Id
Parameters:
nid - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

addToId

public Id addToId(Id.Distance offset)
Adds a feature to the ToId attribute of the VariableId object

Specified by:
addToId in interface Id
Parameters:
offset - The feature to be added to the ToId attribute
Returns:
DESCRIBE THE RETURN VALUE

distanceFromId

public Id.Distance distanceFromId(Id nid)
DESCRIBE THE METHOD

Specified by:
distanceFromId in interface Id
Parameters:
nid - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

longDistanceFromId

public Id.Distance longDistanceFromId(Id nid)
DESCRIBE THE METHOD

Specified by:
longDistanceFromId in interface Id
Parameters:
nid - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

toByteArray

public byte[] toByteArray()
DESCRIBE THE METHOD

Specified by:
toByteArray in interface Id
Returns:
DESCRIBE THE RETURN VALUE

toByteArray

public void toByteArray(byte[] array,
                        int offset)
DESCRIBE THE METHOD

Specified by:
toByteArray in interface Id
Parameters:
array - DESCRIBE THE PARAMETER
offset - DESCRIBE THE PARAMETER

toStringFull

public java.lang.String toStringFull()
DESCRIBE THE METHOD

Specified by:
toStringFull in interface Id
Returns:
DESCRIBE THE RETURN VALUE

compareTo

public int compareTo(java.lang.Object o)
DESCRIBE THE METHOD

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - DESCRIBE THE PARAMETER
Returns:
DESCRIBE THE RETURN VALUE

serialize

public void serialize(OutputBuffer buf)
               throws java.io.IOException
DESCRIBE THE METHOD

Specified by:
serialize in interface Id
Parameters:
buf - DESCRIBE THE PARAMETER
Throws:
java.io.IOException - DESCRIBE THE EXCEPTION

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection