public final class StateSet extends Object
Constructor and Description |
---|
StateSet() |
StateSet(int size) |
StateSet(int size,
int state) |
StateSet(StateSet set) |
Modifier and Type | Method and Description |
---|---|
void |
add(StateSet set) |
void |
addState(int state) |
void |
clear() |
StateSet |
complement(StateSet set)
Returns the set of elements that contained are in the specified set
but are not contained in this set.
|
boolean |
containsElements() |
boolean |
containsSet(StateSet set) |
StateSet |
copy() |
void |
copy(StateSet set)
Copy specified StateSet into this.
|
boolean |
equals(Object b) |
int |
getAndRemoveElement()
Returns one element of the set and removes it.
|
int |
hashCode() |
boolean |
isElement(int state) |
void |
remove(int state) |
StateSetEnumerator |
states() |
String |
toString() |
public static final StateSet EMPTY
public StateSet()
public StateSet(int size)
public StateSet(int size, int state)
public StateSet(StateSet set)
public void addState(int state)
public void clear()
public boolean isElement(int state)
public int getAndRemoveElement()
public void remove(int state)
public StateSet complement(StateSet set)
public void add(StateSet set)
public boolean containsSet(StateSet set)
public boolean equals(Object b)
equals
in class Object
ClassCastException
- if b is not a StateSetNullPointerException
- if b is nullpublic StateSetEnumerator states()
public boolean containsElements()
public StateSet copy()
public void copy(StateSet set)
set
- the state set to copy.Copyright © 1998–2016. All rights reserved.