|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IdSet
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()
Override clone() to make it publicly accessible |
java.util.Iterator<Id> |
getIterator()
return an iterator over the elements of this set |
byte[] |
hash()
return a hash of this set |
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 |
Method Detail |
---|
int numElements()
void addId(Id id)
id
- the id to addvoid removeId(Id id)
id
- the id to removeboolean isMemberId(Id id)
id
- the id to test
IdSet subSet(IdRange range)
from
- the lower end of the range (inclusive)to
- the upper end of the range (exclusive)
java.util.Iterator<Id> getIterator()
Id[] asArray()
byte[] hash()
java.lang.Object clone()
IdSet build()
|
Rice Pastry API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |