public class Events extends Object implements Serializable
Constructor and Description |
---|
Events() |
Modifier and Type | Method and Description |
---|---|
void |
addAllEvents(Events events) |
void |
addEvent(Event vEvent) |
void |
addEvent(int index,
Event vEvent) |
Enumeration<Event> |
enumerateEvent()
Method enumerateEvent.
|
Event[] |
getEvent()
Method getEvent.Returns the contents of the collection in an
Array.
|
Event |
getEvent(int index)
Method getEvent.
|
List<Event> |
getEventCollection()
Method getEventCollection.Returns a reference to
'_eventList'.
|
int |
getEventCount()
Method getEventCount.
|
Iterator<Event> |
iterateEvent()
Method iterateEvent.
|
void |
removeAllEvent() |
boolean |
removeEvent(Event vEvent)
Method removeEvent.
|
Event |
removeEventAt(int index)
Method removeEventAt.
|
void |
setEvent(Event[] vEventArray) |
void |
setEvent(int index,
Event vEvent) |
void |
setEvent(List<Event> vEventList)
Sets the value of '_eventList' by copying the given Vector.
|
void |
setEventCollection(List<Event> eventList)
Deprecated.
|
String |
toString() |
public void addEvent(Event vEvent) throws IndexOutOfBoundsException
vEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void addEvent(int index, Event vEvent) throws IndexOutOfBoundsException
index
- vEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Enumeration<Event> enumerateEvent()
public Event getEvent(int index) throws IndexOutOfBoundsException
index
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic Event[] getEvent()
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<Event> getEventCollection()
public int getEventCount()
public Iterator<Event> iterateEvent()
public void removeAllEvent()
public boolean removeEvent(Event vEvent)
vEvent
- public Event removeEventAt(int index)
index
- public void setEvent(int index, Event vEvent) throws IndexOutOfBoundsException
index
- vEvent
- IndexOutOfBoundsException
- if the index
given is outside the bounds of the collectionpublic void setEvent(Event[] vEventArray)
vEventArray
- public void setEvent(List<Event> vEventList)
vEventList
- the Vector to copy.public void setEventCollection(List<Event> eventList)
eventList
- the Vector to set.public void addAllEvents(Events events)
Copyright © 2021. All rights reserved.