|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.multiring.MultiringIdRange
public class MultiringIdRange
| Field Summary | |
|---|---|
protected IdRange |
range
The actual IdRange |
protected Id |
ringId
The ringId of the nodes in the range |
| Constructor Summary | |
|---|---|
protected |
MultiringIdRange(Id ringId,
IdRange range)
Constructor |
|
MultiringIdRange(InputBuffer buf,
Endpoint endpoint)
|
| Method Summary | |
|---|---|
boolean |
containsId(Id key)
test if a given key lies within this range |
IdRange |
diffRange(IdRange diff)
diffs the given range with this range |
boolean |
equals(java.lang.Object o)
Determines equality |
Id |
getCCWId()
get counterclockwise edge of range |
IdRange |
getComplementRange()
get the complement of this range |
Id |
getCWId()
get clockwise edge of range |
protected IdRange |
getRange()
Returns the internal range |
int |
hashCode()
Returns the hashCode |
IdRange |
intersectRange(IdRange intersect)
intersects the given range with this range |
boolean |
isEmpty()
returns whether or not this range is empty |
IdRange |
mergeRange(IdRange merge)
merges the given range with this range |
void |
serialize(OutputBuffer buf)
|
java.lang.String |
toString()
Prints out the string |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IdRange range
protected Id ringId
| Constructor Detail |
|---|
protected MultiringIdRange(Id ringId,
IdRange range)
public MultiringIdRange(InputBuffer buf,
Endpoint endpoint)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
protected 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 merge)
mergeRange in interface IdRangepublic IdRange diffRange(IdRange diff)
diffRange in interface IdRangepublic IdRange intersectRange(IdRange intersect)
intersectRange in interface IdRangepublic boolean isEmpty()
isEmpty in interface IdRangepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectother - To compare to
public int hashCode()
hashCode in class java.lang.Objectpublic 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 | |||||||||