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