StateT - The states contained in the waitlist.public interface Waitlist<StateT extends AbstractState<StateT>>
| Modifier and Type | Method and Description |
|---|---|
void |
add(StateT state)
Adds an abstract state.
|
void |
addAll(java.util.Collection<? extends StateT> abstractStates)
Adds multiple abstract states.
|
void |
clear()
Empties the waitlist.
|
boolean |
contains(StateT abstractState)
Checks whether the abstract state is present.
|
boolean |
isEmpty()
Checks whether the waitlist is empty.
|
StateT |
pop()
Remove the next abstract state and return it.
|
boolean |
remove(StateT abstractState)
Removes an abstract state.
|
void |
removeAll(java.util.Collection<? extends StateT> abstractStates)
Removes multiple abstract states.
|
int |
size()
Returns the size of the waitlist.
|
void add(StateT state)
void addAll(java.util.Collection<? extends StateT> abstractStates)
void clear()
boolean contains(StateT abstractState)
boolean isEmpty()
StateT pop()
boolean remove(StateT abstractState)
void removeAll(java.util.Collection<? extends StateT> abstractStates)
int size()