|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.tivoli.zce.engine.EventList
The EventList class stores an array of Events and keeps track of the last index used in this array.
This implementation uses the ArrayList class which efficiently increases the capacity of the list on demand. For cases where large numbers of elements are removed from EventList, we provide a mechanism to call ArrayList.trimToSize method
Constructor Summary | |
EventList(Event event)
Create EventList with one given event in it |
|
EventList(int size)
Create EventList of specific size |
Method Summary | |
Event |
eventAt(int position)
Get Event at given position in list |
int |
length()
Get maximum size of list. |
void |
removeLast()
Remove last element in the list |
void |
setEventAt(Event event,
int position)
Set Event at given position in list |
int |
size()
Get current size of list (index of last element set) |
java.lang.String |
toString()
Return contents of the EventList as a String. |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public EventList(int size)
size
- Size of list to be createdpublic EventList(Event event)
event
- Single event contained in this listMethod Detail |
public void setEventAt(Event event, int position)
event
- Event to be stored in listposition
- Position this Event will be stored in listpublic Event eventAt(int position)
position
- Position in list we want to get Event frompublic int size()
public void removeLast()
public int length()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |