|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjmdp.basic.ActionsSet<A>
public class ActionsSet<A extends Action>
This class represents a set of objects Action. It uses the TreeSet structure to avoid repeated actions. This class extends the Actions class.
Collection
,
Actions
,
Action
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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()
Method Detail |
---|
public void add(A a)
public final java.util.Iterator<A> iterator()
iterator
in interface java.lang.Iterable<A extends Action>
iterator
in interface Actions<A extends Action>
public int size()
Actions
size
in interface Actions<A extends Action>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |