|
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.GCIdSet
Field Summary | |
protected IdSet |
ids
DESCRIBE THE FIELD |
protected java.util.SortedMap |
timeouts
DESCRIBE THE FIELD |
Constructor Summary | |
protected |
GCIdSet(IdFactory factory)
Constructor |
protected |
GCIdSet(IdSet set,
java.util.SortedMap timeouts)
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 |
protected GCId |
getGCId(Id id)
Gets the GCId attribute of the GCIdSet object |
java.util.Iterator |
getIterator()
return an iterator over the elements of this 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 ids
protected java.util.SortedMap timeouts
Constructor Detail |
protected GCIdSet(IdFactory factory)
factory
- DESCRIBE THE PARAMETERprotected GCIdSet(IdSet set, java.util.SortedMap timeouts)
set
- DESCRIBE THE PARAMETERtimeouts
- DESCRIBE THE PARAMETERMethod Detail |
public boolean isMemberId(Id id)
isMemberId
in interface IdSet
id
- the id to test
public java.util.Iterator getIterator()
getIterator
in interface IdSet
protected GCId getGCId(Id id)
id
- DESCRIBE THE PARAMETER
public int numElements()
numElements
in interface IdSet
public void addId(Id id)
addId
in interface IdSet
id
- the id to addpublic void removeId(Id id)
removeId
in interface IdSet
id
- the id to removepublic IdSet subSet(IdRange range)
subSet
in interface IdSet
range
- DESCRIBE THE PARAMETER
public Id[] asArray()
asArray
in interface IdSet
public byte[] hash()
hash
in interface IdSet
public boolean equals(java.lang.Object o)
o
- DESCRIBE THE PARAMETER
public int hashCode()
public java.lang.String toString()
public java.lang.Object clone()
clone
in interface IdSet
public 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 |