public class DSet extends Object
The actions are stored as Action
objects in a ArrayList
.
Constructor and Description |
---|
DSet(Action... actions)
Constructor of the class.
|
DSet(List<Action> actions)
Constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action action)
Adds the specified action to the set.
|
Action |
getAction(String eventName)
Gets the action corresponding to the specified name.
|
String |
toString()
Returns the set in the form of:
"D set:
{
Action.toString()
Action.toString()
}
|
public DSet(Action... actions)
actions
- an array of the actions to be stored in the set or each action
as a parameter.public void addAction(Action action)
action
- to add in the set.public Action getAction(String eventName)
eventName
- the name of the action to get.Action
object.public String toString()
toString
in class Object
Object.toString()