|
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
public class 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)
|
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)
|
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
java.io.IOException
Method Detail |
---|
public IdRange getRange()
public boolean containsId(Id key)
containsId
in interface IdRange
key
- the key
public Id getCCWId()
getCCWId
in interface IdRange
public Id getCWId()
getCWId
in interface IdRange
public IdRange getComplementRange()
getComplementRange
in interface IdRange
public IdRange mergeRange(IdRange range)
mergeRange
in interface IdRange
public IdRange diffRange(IdRange range)
diffRange
in interface IdRange
public IdRange intersectRange(IdRange range)
intersectRange
in interface IdRange
public boolean isEmpty()
isEmpty
in interface IdRange
public java.lang.String toString()
toString
in class java.lang.Object
public void serialize(OutputBuffer buf) throws java.io.IOException
serialize
in interface IdRange
java.io.IOException
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |