|
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. TODO list impl for really sparse sets
Constructor Summary | |
BitIdSet()
|
|
BitIdSet(int id)
|
Method Summary | |
BitIdSet |
add(int id)
|
BitIdSet |
add(int first,
int last)
|
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(net.axyana.qizxopen.util.io.ByteInput input)
|
void |
remove(int id)
|
IdSet |
removeAll(IdSet other)
Remove all members of another from this one. |
void |
save(net.axyana.qizxopen.util.io.ByteOutput output)
|
java.lang.StringBuffer |
show(int maxSize)
|
int |
size()
|
boolean |
test(int id)
Identifier containment test. |
IdSet |
unionWith(IdSet other)
Union with any 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 BitIdSet add(int id)
public BitIdSet add(int first, int last)
public void remove(int id)
public void clear()
public IdSet unionWith(IdSet other)
public IdSet removeAll(IdSet other)
public int getNext(int id)
getNext
in class IdSet
public int size()
public void save(net.axyana.qizxopen.util.io.ByteOutput output) throws java.io.IOException
java.io.IOException
public void load(net.axyana.qizxopen.util.io.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 |