|
Qizx/open API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.axyana.qizxopen.util.IdSet
net.axyana.qizxopen.util.BitIdSet
A set of (positive) integer identifiers. A bit optimized for sparse sets.
Constructor Summary | |
BitIdSet()
|
|
BitIdSet(int id)
|
Method Summary | |
void |
add(int id)
|
void |
clear()
Clear all elements. |
IdSet |
copy()
|
void |
dump(java.io.PrintStream output)
|
int |
getNext(int id)
Iteration mechanism: returns the first id in the set that is >= to argument. |
void |
load(ByteInput input)
|
void |
remove(int id)
|
void |
save(ByteOutput output)
|
java.lang.StringBuffer |
show(int maxSize)
|
int |
size()
|
boolean |
test(int id)
Identifier containment test. |
IdSet |
unionWith(BitIdSet other)
Merges an IdSet with this set. |
Methods inherited from class net.axyana.qizxopen.util.IdSet |
intersects, isEmpty |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BitIdSet()
public BitIdSet(int id)
Method Detail |
public boolean test(int id)
IdSet
test
in class IdSet
public IdSet copy()
copy
in class IdSet
public void add(int id)
public void remove(int id)
public void clear()
public IdSet unionWith(BitIdSet other)
public int getNext(int id)
getNext
in class IdSet
public int size()
public void save(ByteOutput output) throws java.io.IOException
java.io.IOException
public void load(ByteInput input) throws java.io.IOException
java.io.IOException
public void dump(java.io.PrintStream output)
public java.lang.StringBuffer show(int maxSize)
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |