A - The action class.public class ActionsSet<A extends Action> extends java.lang.Object implements Actions<A>
| Constructor and Description |
|---|
ActionsSet()
Creates an empty set of Actions.
|
ActionsSet(A ac)
Creates a set of Actions from a given Action.
|
ActionsSet(A[] acArray)
Creates a set of Actions from a given array of Actions.
|
ActionsSet(Actions<A> ac)
Creates a set of Actions from a given set of Actions.
|
ActionsSet(java.lang.Iterable<A> actIter)
Creates a set of actions from any iterable object over actions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(A a)
This method adds a new action to the set.
|
java.util.Iterator<A> |
iterator()
This method returns a safe way to walk along the actions in a particular
set.
|
int |
size()
Returns the number of elements.
|
java.lang.String |
toString() |
public ActionsSet(Actions<A> ac)
ac - set of Actions of type Actions.public ActionsSet(java.lang.Iterable<A> actIter)
actIter - public ActionsSet(A[] acArray)
acArray - set of Actions of type Actions.public ActionsSet(A ac)
ac - an Action.public ActionsSet()
public void add(A a)
a - The action to be added.public final java.util.Iterator<A> iterator()
public int size()
Actions