Rice Pastry API

rice.pastry.testing
Class IdRangeUnit

java.lang.Object
  extended by rice.pastry.testing.IdRangeUnit

public class IdRangeUnit
extends java.lang.Object

IdRangeUnit tests the IdRange class.

Version:
$Id: IdRangeUnit.java 3524 2007-01-09 14:09:27Z jeffh $
Author:
Peter Druschel

Constructor Summary
IdRangeUnit()
           
 
Method Summary
 IdRange createEmptyIdRange()
           
 IdRange createFullIdRange()
           
 IdRange createIdRangeEndingIn(Id cw)
           
 IdRange createIdRangeStartingWith(Id ccw)
           
 Id createIdWithPrefix(byte b)
           
 IdRange createRandomIdRange()
           
 void diffSubtractTest(IdRange r1, IdRange r2)
           
 void equalityTest(IdRange r1, IdRange r2)
           
 void halfTest()
           
static void main(java.lang.String[] args)
           
 void mergeIntersectTest(IdRange r1, IdRange r2)
           
 void mergeTest(IdRange r1, IdRange r2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdRangeUnit

public IdRangeUnit()
Method Detail

createRandomIdRange

public IdRange createRandomIdRange()

createFullIdRange

public IdRange createFullIdRange()

createEmptyIdRange

public IdRange createEmptyIdRange()

createIdRangeStartingWith

public IdRange createIdRangeStartingWith(Id ccw)

createIdRangeEndingIn

public IdRange createIdRangeEndingIn(Id cw)

createIdWithPrefix

public Id createIdWithPrefix(byte b)

halfTest

public void halfTest()

equalityTest

public void equalityTest(IdRange r1,
                         IdRange r2)

mergeIntersectTest

public void mergeIntersectTest(IdRange r1,
                               IdRange r2)

diffSubtractTest

public void diffSubtractTest(IdRange r1,
                             IdRange r2)

mergeTest

public void mergeTest(IdRange r1,
                      IdRange r2)

main

public static void main(java.lang.String[] args)

Rice Pastry API

Copyright © 2001-2005 - Rice Pastry.


Imprint-Dataprotection