|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object rice.p2p.past.gc.GCIdRange
Field Summary | |
protected IdRange |
range
The internal (normal) IdRange |
Constructor Summary | |
GCIdRange(IdRange range)
Constructor, which takes a normal IdRange |
|
GCIdRange(InputBuffer buf,
Endpoint endpoint)
Constructor for GCIdRange. |
Method Summary | |
boolean |
containsId(Id key)
test if a given key lies within this range |
IdRange |
diffRange(IdRange range)
diffs the given range with this range |
Id |
getCCWId()
get counterclockwise edge of range |
IdRange |
getComplementRange()
get the complement of this range |
Id |
getCWId()
get clockwise edge of range |
IdRange |
getRange()
Returns the internal range |
IdRange |
intersectRange(IdRange range)
intersects the given range with this range |
boolean |
isEmpty()
returns whether or not this range is empty |
IdRange |
mergeRange(IdRange range)
merges the given range with this range |
void |
serialize(OutputBuffer buf)
DESCRIBE THE METHOD |
java.lang.String |
toString()
Returns a string |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected IdRange range
Constructor Detail |
public GCIdRange(IdRange range)
range
- The normal rangepublic GCIdRange(InputBuffer buf, Endpoint endpoint) throws java.io.IOException
buf
- DESCRIBE THE PARAMETERendpoint
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTIONMethod Detail |
public IdRange getRange()
public Id getCCWId()
getCCWId
in interface IdRange
public Id getCWId()
getCWId
in interface IdRange
public IdRange getComplementRange()
getComplementRange
in interface IdRange
public boolean isEmpty()
isEmpty
in interface IdRange
public boolean containsId(Id key)
containsId
in interface IdRange
key
- the key
public IdRange mergeRange(IdRange range)
mergeRange
in interface IdRange
range
- DESCRIBE THE PARAMETER
public IdRange diffRange(IdRange range)
diffRange
in interface IdRange
range
- DESCRIBE THE PARAMETER
public IdRange intersectRange(IdRange range)
intersectRange
in interface IdRange
range
- DESCRIBE THE PARAMETER
public java.lang.String toString()
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface IdRange
buf
- DESCRIBE THE PARAMETER
java.io.IOException
- DESCRIBE THE EXCEPTION
|
Rice Pastry API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |