接口 Waitlist<StateT extends AbstractState<StateT>>
- 类型参数:
StateT- The states contained in the waitlist.
public interface Waitlist<StateT extends AbstractState<StateT>>
-
方法概要
修饰符和类型方法说明voidAdds an abstract state.voidaddAll(Collection<? extends StateT> abstractStates) Adds multiple abstract states.voidclear()Empties the waitlist.booleanChecks whether the abstract state is present.booleanisEmpty()Checks whether the waitlist is empty.pop()Remove the next abstract state and return it.booleanRemoves an abstract state.voidremoveAll(Collection<? extends StateT> abstractStates) Removes multiple abstract states.intsize()Returns the size of the waitlist.
-
方法详细资料
-
add
Adds an abstract state. -
addAll
Adds multiple abstract states. -
clear
void clear()Empties the waitlist. -
contains
Checks whether the abstract state is present. -
isEmpty
boolean isEmpty()Checks whether the waitlist is empty. -
pop
StateT pop()Remove the next abstract state and return it. -
remove
Removes an abstract state. -
removeAll
Removes multiple abstract states. -
size
int size()Returns the size of the waitlist.
-