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