public class CompositeAction<T extends Action> extends Object implements Action, Collection<T>
Modifier and Type | Field and Description |
---|---|
private Collection<T> |
actions |
Constructor and Description |
---|
CompositeAction(Collection<T> theActions) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T theAction) |
boolean |
addAll(Collection<? extends T> theActions) |
void |
clear() |
boolean |
contains(Object theObject) |
boolean |
containsAll(Collection<?> theObjects) |
void |
execute() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
remove(Object theObject) |
boolean |
removeAll(Collection<?> theObjects) |
boolean |
retainAll(Collection<?> theObjects) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] theObjects) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
private Collection<T extends Action> actions
public CompositeAction(Collection<T> theActions)
public boolean add(T theAction)
add
in interface Collection<T extends Action>
public boolean addAll(Collection<? extends T> theActions)
addAll
in interface Collection<T extends Action>
public void clear()
clear
in interface Collection<T extends Action>
public boolean contains(Object theObject)
contains
in interface Collection<T extends Action>
public boolean containsAll(Collection<?> theObjects)
containsAll
in interface Collection<T extends Action>
public boolean isEmpty()
isEmpty
in interface Collection<T extends Action>
public boolean remove(Object theObject)
remove
in interface Collection<T extends Action>
public boolean removeAll(Collection<?> theObjects)
removeAll
in interface Collection<T extends Action>
public boolean retainAll(Collection<?> theObjects)
retainAll
in interface Collection<T extends Action>
public int size()
size
in interface Collection<T extends Action>
public Object[] toArray()
toArray
in interface Collection<T extends Action>
public <T> T[] toArray(T[] theObjects)
toArray
in interface Collection<T extends Action>