public class StateSetBackingBitSet extends Object implements StateSetBackingSet
| Constructor and Description |
|---|
StateSetBackingBitSet(int stateIndexSize) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(short id)
Analogous to
Set.add(Object). |
void |
addBatch(short id)
Add a value in batch mode.
|
void |
addBatchFinish()
Stop "add batch mode".
|
void |
clear()
Analogous to
Set.clear() . |
boolean |
contains(short id)
Analogous to
Set.contains(Object). |
boolean |
contains(StateSetBackingSet other)
Check whether this set is contains all entries of another
StateSetBackingSet. |
StateSetBackingSet |
copy() |
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
isDisjoint(StateSetBackingSet other)
Check whether this set is disjoint to another
StateSetBackingSet. |
PrimitiveIterator.OfInt |
iterator() |
boolean |
remove(short id)
Analogous to
Set.remove(Object). |
void |
replace(short oldId,
short newId)
Efficient version of
remove(oldId); add(newId). |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic StateSetBackingSet copy()
copy in interface StateSetBackingSetpublic boolean contains(short id)
StateSetBackingSetSet.contains(Object).contains in interface StateSetBackingSetpublic boolean add(short id)
StateSetBackingSetSet.add(Object).add in interface StateSetBackingSetpublic void addBatch(short id)
StateSetBackingSetStateSetBackingSet.addBatchFinish() is called. The purpose of this is to allow more efficient add
operations that temporarily break the set's consistency. While this mode is active, other
methods are not guaranteed to work correctly!addBatch in interface StateSetBackingSetid - the id to add to the set.public void addBatchFinish()
StateSetBackingSetaddBatchFinish in interface StateSetBackingSetpublic void replace(short oldId,
short newId)
StateSetBackingSetremove(oldId); add(newId). This method assumes that the set
contains oldId and the set does not contain newId!replace in interface StateSetBackingSetoldId - id to remove. Assumed to be contained in the set.newId - id to add. Assumed to be absent in the set.public boolean remove(short id)
StateSetBackingSetSet.remove(Object).remove in interface StateSetBackingSetpublic void clear()
StateSetBackingSetSet.clear() .clear in interface StateSetBackingSetpublic boolean isDisjoint(StateSetBackingSet other)
StateSetBackingSetStateSetBackingSet.isDisjoint in interface StateSetBackingSetother - the other backing set.true if this set is disjoint to the other set.public boolean contains(StateSetBackingSet other)
StateSetBackingSetStateSetBackingSet.contains in interface StateSetBackingSetother - the other backing set.true if this set contains the other set.public PrimitiveIterator.OfInt iterator()
iterator in interface StateSetBackingSetiterator in interface Iterable<Integer>