public class Automations extends Object implements Serializable
Constructor and Description |
---|
Automations() |
Automations(List<Automation> automations) |
Modifier and Type | Method and Description |
---|---|
void |
addAutomation(Automation vAutomation) |
void |
addAutomation(int index,
Automation vAutomation) |
Enumeration<Automation> |
enumerateAutomation()
Method enumerateAutomation.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
Automation[] |
getAutomation()
Method getAutomation.Returns the contents of the collection in an
Array.
|
Automation |
getAutomation(int index)
Method getAutomation.
|
List<Automation> |
getAutomationCollection()
Method getAutomationCollection.Returns a reference to
'_automationList'.
|
int |
getAutomationCount()
Method getAutomationCount.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
Iterator<Automation> |
iterateAutomation()
Method iterateAutomation.
|
void |
removeAllAutomation() |
boolean |
removeAutomation(Automation vAutomation)
Method removeAutomation.
|
Automation |
removeAutomationAt(int index)
Method removeAutomationAt.
|
void |
setAutomation(Automation[] vAutomationArray) |
void |
setAutomation(int index,
Automation vAutomation) |
void |
setAutomation(List<Automation> vAutomationList)
Sets the value of '_automationList' by copying the given Vector.
|
public Automations()
public Automations(List<Automation> automations)
public void addAutomation(Automation vAutomation) throws IndexOutOfBoundsException
vAutomation
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addAutomation(int index, Automation vAutomation) throws IndexOutOfBoundsException
index
- vAutomation
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Automation> enumerateAutomation()
public boolean equals(Object obj)
public Automation getAutomation(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Automation[] getAutomation()
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<Automation> getAutomationCollection()
public int getAutomationCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Automation> iterateAutomation()
public void removeAllAutomation()
public boolean removeAutomation(Automation vAutomation)
vAutomation
- public Automation removeAutomationAt(int index)
index
- public void setAutomation(int index, Automation vAutomation) throws IndexOutOfBoundsException
index
- vAutomation
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setAutomation(Automation[] vAutomationArray)
vAutomationArray
- public void setAutomation(List<Automation> vAutomationList)
vAutomationList
- the Vector to copy.Copyright © 2017. All rights reserved.