public interface StateSetBackingSet extends Iterable<Integer>
StateSet.| 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 |
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). |
forEach, spliteratorStateSetBackingSet copy()
boolean contains(short id)
Set.contains(Object).boolean add(short id)
Set.add(Object).void addBatch(short id)
StateSetBackingSet.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!id - the id to add to the set.void addBatchFinish()
void replace(short oldId,
short newId)
remove(oldId); add(newId). This method assumes that the set
contains oldId and the set does not contain newId!oldId - id to remove. Assumed to be contained in the set.newId - id to add. Assumed to be absent in the set.boolean remove(short id)
Set.remove(Object).void clear()
Set.clear() .boolean isDisjoint(StateSetBackingSet other)
StateSetBackingSet.other - the other backing set.true if this set is disjoint to the other set.boolean contains(StateSetBackingSet other)
StateSetBackingSet.other - the other backing set.true if this set contains the other set.PrimitiveIterator.OfInt iterator()