public class Triggers extends Object implements Serializable
Constructor and Description |
---|
Triggers() |
Triggers(List<Trigger> triggers) |
Modifier and Type | Method and Description |
---|---|
void |
addTrigger(int index,
Trigger vTrigger) |
void |
addTrigger(Trigger vTrigger) |
Enumeration<Trigger> |
enumerateTrigger()
Method enumerateTrigger.
|
boolean |
equals(Object obj)
Overrides the Object.equals method.
|
Trigger[] |
getTrigger()
Method getTrigger.Returns the contents of the collection in an Array.
|
Trigger |
getTrigger(int index)
Method getTrigger.
|
List<Trigger> |
getTriggerCollection()
Method getTriggerCollection.Returns a reference to '_triggerList'.
|
int |
getTriggerCount()
Method getTriggerCount.
|
int |
hashCode()
Overrides the Object.hashCode method.
|
Iterator<Trigger> |
iterateTrigger()
Method iterateTrigger.
|
void |
removeAllTrigger() |
boolean |
removeTrigger(Trigger vTrigger)
Method removeTrigger.
|
Trigger |
removeTriggerAt(int index)
Method removeTriggerAt.
|
void |
setTrigger(int index,
Trigger vTrigger) |
void |
setTrigger(List<Trigger> vTriggerList)
Sets the value of '_triggerList' by copying the given Vector.
|
void |
setTrigger(Trigger[] vTriggerArray) |
public void addTrigger(Trigger vTrigger) throws IndexOutOfBoundsException
vTrigger
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void addTrigger(int index, Trigger vTrigger) throws IndexOutOfBoundsException
index
- vTrigger
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Enumeration<Trigger> enumerateTrigger()
public boolean equals(Object obj)
public Trigger getTrigger(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic Trigger[] getTrigger()
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<Trigger> getTriggerCollection()
public int getTriggerCount()
public int hashCode()
The following steps came from Effective Java Programming Language Guide by Joshua Bloch, Chapter 3
public Iterator<Trigger> iterateTrigger()
public void removeAllTrigger()
public boolean removeTrigger(Trigger vTrigger)
vTrigger
- public Trigger removeTriggerAt(int index)
index
- public void setTrigger(int index, Trigger vTrigger) throws IndexOutOfBoundsException
index
- vTrigger
- IndexOutOfBoundsException
- if the index given is outside the bounds of the collectionpublic void setTrigger(Trigger[] vTriggerArray)
vTriggerArray
- Copyright © 2017. All rights reserved.