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