SAP NetWeaver '04

com.sap.netweaver.bc.rf.util.event
Class EventList

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.util_api.jar]
java.lang.Object
  |
  +--com.sap.netweaver.bc.rf.util.event.EventList
All Implemented Interfaces:
IEventList

public class EventList
extends java.lang.Object
implements IEventList

Class implementing mutable list of IEvent instances.


Constructor Summary
EventList()
          Construct a list containing no events.
EventList(EventList list)
          Constructs a list containing the events of the specified list, in the order they are returned by the list's iterator.
 
Method Summary
 boolean add(IEvent event)
          Add event to event list.
 void add(int index, IEvent event)
          Add event into list at specified index, moving all following events one element further.
 boolean addAll(IEventList list)
          Add all events from list to list.
 void addFirst(IEvent event)
          Add event to the beginning of the list.
 void addLast(IEvent event)
          Add event to the end of the list.
 void clear()
          Remove all events from list.
 IEvent get(int index)
          Get event by index.
 boolean isEmpty()
          Check if list is empty.
 IEventListIterator listIterator()
          Get an iterator of the elements in this list (in proper sequence).
 IEventListIterator listIterator(int index)
          Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list.
 IEvent remove(int index)
          Remove event at specified index, moving all following events one element closer.
 IEvent set(int index, IEvent event)
          Set event by index.
 int size()
          Get number of events in list.
 java.lang.String toString()
          Get string representation of the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventList

public EventList()
Construct a list containing no events.

EventList

public EventList(EventList list)
Constructs a list containing the events of the specified list, in the order they are returned by the list's iterator.
Parameters:
list - event list
Method Detail

size

public int size()
Get number of events in list.
Specified by:
size in interface IEventList
Returns:
number of events in list

isEmpty

public boolean isEmpty()
Check if list is empty.
Specified by:
isEmpty in interface IEventList
Returns:
true if list is empty

get

public IEvent get(int index)
Get event by index.
Specified by:
get in interface IEventList
Parameters:
index - index
Returns:
event

set

public IEvent set(int index,
                  IEvent event)
Set event by index.
Specified by:
set in interface IEventList
Parameters:
index - index
event - event
Returns:
event priorily stored at the given index

add

public boolean add(IEvent event)
Add event to event list.
Specified by:
add in interface IEventList
Parameters:
event - event
Returns:
true if event was added successfully

addFirst

public void addFirst(IEvent event)
Add event to the beginning of the list.
Specified by:
addFirst in interface IEventList
Parameters:
event - event

addLast

public void addLast(IEvent event)
Add event to the end of the list.
Specified by:
addLast in interface IEventList
Parameters:
event - event

add

public void add(int index,
                IEvent event)
Add event into list at specified index, moving all following events one element further.
Specified by:
add in interface IEventList
Parameters:
index - index
event - event

addAll

public boolean addAll(IEventList list)
Add all events from list to list.
Specified by:
addAll in interface IEventList
Parameters:
list - list of events
Returns:
true if all events were added successfully

remove

public IEvent remove(int index)
Remove event at specified index, moving all following events one element closer.
Specified by:
remove in interface IEventList
Parameters:
index - index
Returns:
event priorily stored at the given index

clear

public void clear()
Remove all events from list.
Specified by:
clear in interface IEventList

listIterator

public IEventListIterator listIterator()
Get an iterator of the elements in this list (in proper sequence).
Specified by:
listIterator in interface IEventList
Returns:
list iterator

listIterator

public IEventListIterator listIterator(int index)
Returns a list iterator of the elements in this list (in proper sequence), starting at the specified position in the list. The specified index indicates the first element that would be returned by an initial call to the next method. An initial call to the previous method would return the element with the specified index minus one.
Specified by:
listIterator in interface IEventList
Parameters:
index - index
Returns:
list iterator

toString

public java.lang.String toString()
Get string representation of the list.
Overrides:
toString in class java.lang.Object
Returns:
string representation of the list

SAP NetWeaver '04

Copyright © 2004 by SAP AG. All Rights Reserved.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP NetWeaver, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary.

These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.