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 java.lang.Object implements Waitlist<StateT>
-
-
Constructor Summary
Constructors Constructor Description AbstractWaitlist()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(StateT abstractState)
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.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.
-
-
-
Field Detail
-
waitlist
protected final java.util.Collection<StateT extends AbstractState<StateT>> waitlist
-
-
Method Detail
-
add
public void add(StateT abstractState)
Description copied from interface:Waitlist
Adds an abstract state.- Specified by:
add
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
addAll
public void addAll(java.util.Collection<? extends StateT> abstractStates)
Description copied from interface:Waitlist
Adds multiple abstract states.- Specified by:
addAll
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
clear
public void clear()
Description copied from interface:Waitlist
Empties the waitlist.- Specified by:
clear
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
contains
public boolean contains(StateT abstractState)
Description copied from interface:Waitlist
Checks whether the abstract state is present.- Specified by:
contains
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
isEmpty
public boolean isEmpty()
Description copied from interface:Waitlist
Checks whether the waitlist is empty.- Specified by:
isEmpty
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
remove
public boolean remove(StateT abstractState)
Description copied from interface:Waitlist
Removes an abstract state.- Specified by:
remove
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
removeAll
public void removeAll(java.util.Collection<? extends StateT> abstractStates)
Description copied from interface:Waitlist
Removes multiple abstract states.- Specified by:
removeAll
in interfaceWaitlist<StateT extends AbstractState<StateT>>
-
-