Package proguard.analysis.cpa.defaults
Class AbstractWaitlist<StateT extends AbstractState<StateT>>
java.lang.Object
proguard.analysis.cpa.defaults.AbstractWaitlist<StateT>
- Type Parameters:
StateT- The states contained in the waitlist.
- All Implemented Interfaces:
Waitlist<StateT>
- Direct Known Subclasses:
BreadthFirstWaitlist,DepthFirstWaitlist
public abstract class AbstractWaitlist<StateT extends AbstractState<StateT>>
extends Object
implements Waitlist<StateT>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds 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.booleanRemoves an abstract state.voidremoveAll(Collection<? extends StateT> abstractStates) Removes multiple abstract states.intsize()Returns the size of the waitlist.
-
Field Details
-
waitlist
-
-
Constructor Details
-
AbstractWaitlist
public AbstractWaitlist()
-
-
Method Details
-
add
Description copied from interface:WaitlistAdds an abstract state.- Specified by:
addin interfaceWaitlist<StateT extends AbstractState<StateT>>
-
addAll
Description copied from interface:WaitlistAdds multiple abstract states.- Specified by:
addAllin interfaceWaitlist<StateT extends AbstractState<StateT>>
-
clear
public void clear()Description copied from interface:WaitlistEmpties the waitlist.- Specified by:
clearin interfaceWaitlist<StateT extends AbstractState<StateT>>
-
contains
Description copied from interface:WaitlistChecks whether the abstract state is present.- Specified by:
containsin interfaceWaitlist<StateT extends AbstractState<StateT>>
-
isEmpty
public boolean isEmpty()Description copied from interface:WaitlistChecks whether the waitlist is empty.- Specified by:
isEmptyin interfaceWaitlist<StateT extends AbstractState<StateT>>
-
remove
Description copied from interface:WaitlistRemoves an abstract state.- Specified by:
removein interfaceWaitlist<StateT extends AbstractState<StateT>>
-
removeAll
Description copied from interface:WaitlistRemoves multiple abstract states.- Specified by:
removeAllin interfaceWaitlist<StateT extends AbstractState<StateT>>
-
size
public int size()Description copied from interface:WaitlistReturns the size of the waitlist.- Specified by:
sizein interfaceWaitlist<StateT extends AbstractState<StateT>>
-