|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrice.p2p.multiring.MultiringIdSet
public class MultiringIdSet
| Field Summary | |
|---|---|
protected Id |
ringId
The ringId of the ids in the set |
protected IdSet |
set
The actual IdSet |
| Constructor Summary | |
|---|---|
protected |
MultiringIdSet(Id ringId,
IdSet set)
Constructor |
| Method Summary | |
|---|---|
void |
addId(Id id)
add a member |
Id[] |
asArray()
return this set as an array |
IdSet |
build()
Returns a new, empty IdSet of this type |
java.lang.Object |
clone()
Clones this object |
boolean |
equals(java.lang.Object o)
Determines equality |
java.util.Iterator |
getIterator()
return an iterator over the elements of this set |
protected IdSet |
getSet()
Returns the internal set |
byte[] |
hash()
return a hash of this set |
int |
hashCode()
Returns the hashCode |
boolean |
isMemberId(Id id)
test membership |
int |
numElements()
return the number of elements |
void |
removeId(Id id)
remove a member |
IdSet |
subSet(IdRange range)
return a subset of this set, consisting of the member ids in a given range |
java.lang.String |
toString()
Prints out the string |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected IdSet set
protected Id ringId
| Constructor Detail |
|---|
protected MultiringIdSet(Id ringId,
IdSet set)
ringId - DESCRIBE THE PARAMETERset - DESCRIBE THE PARAMETER| Method Detail |
|---|
protected IdSet getSet()
public boolean isMemberId(Id id)
isMemberId in interface IdSetid - the id to test
public java.util.Iterator getIterator()
getIterator in interface IdSetpublic int numElements()
numElements in interface IdSetpublic void addId(Id id)
addId in interface IdSetid - the id to addpublic void removeId(Id id)
removeId in interface IdSetid - the id to removepublic IdSet subSet(IdRange range)
subSet in interface IdSetrange - DESCRIBE THE PARAMETER
public Id[] asArray()
asArray in interface IdSetpublic byte[] hash()
hash in interface IdSetpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the reference object with which to compare.
public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in interface IdSetclone in class java.lang.Objectpublic IdSet build()
build in interface IdSet
|
Rice Pastry API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||