public class Actions extends Object implements Serializable
Constructor and Description |
---|
Actions() |
Actions(List<Action> actions) |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action vAction) |
void |
addAction(int index,
Action vAction) |
Enumeration<Action> |
enumerateAction()
Method enumerateAction.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
Action[] |
getAction()
Method getAction.Returns the contents of the collection in an Array.
|
Action |
getAction(int index)
Method getAction.
|
List<Action> |
getActionCollection()
Method getActionCollection.Returns a reference to '_actionList'.
|
int |
getActionCount()
Method getActionCount.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
Iterator<Action> |
iterateAction()
Method iterateAction.
|
boolean |
removeAction(Action vAction)
Method removeAction.
|
Action |
removeActionAt(int index)
Method removeActionAt.
|
void |
removeAllAction() |
void |
setAction(Action[] vActionArray) |
void |
setAction(int index,
Action vAction) |
void |
setAction(List<Action> vActionList)
Sets the value of '_actionList' by copying the given Vector.
|
public void addAction(Action vAction) throws IndexOutOfBoundsException
vAction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addAction(int index, Action vAction) throws IndexOutOfBoundsException
index
- vAction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Action> enumerateAction()
public boolean equals(Object obj)
public Action getAction(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Action[] getAction()
Note: Just in case the collection contents are changing in another thread, we pass a 0-length Array of the correct type into the API call. This way we know that the Array returned is of exactly the correct length.
public List<Action> getActionCollection()
public int getActionCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Action> iterateAction()
public boolean removeAction(Action vAction)
vAction
- public Action removeActionAt(int index)
index
- public void removeAllAction()
public void setAction(int index, Action vAction) throws IndexOutOfBoundsException
index
- vAction
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setAction(Action[] vActionArray)
vActionArray
- Copyright © 2017. All rights reserved.