SAP NetWeaver '04

com.sap.netweaver.bc.rf.util.event
Interface IEventList

[contained in: com.sap.netweaver.bc.rf.par - bc.rf.util_api.jar]
All Known Implementing Classes:
EventList

public interface IEventList

Interface describing mutable list of IEvent instances.


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.
 

Method Detail

size

public int size()
Get number of events in list.
Returns:
number of events in list

isEmpty

public boolean isEmpty()
Check if list is empty.
Returns:
true if list is empty

get

public IEvent get(int index)
Get event by index.
Parameters:
index - index
Returns:
event

set

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

add

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

addFirst

public void addFirst(IEvent event)
Add event to the beginning of the list.
Parameters:
event - event

addLast

public void addLast(IEvent event)
Add event to the end of the list.
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.
Parameters:
index - index
event - event

addAll

public boolean addAll(IEventList list)
Add all events from list to list.
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.
Parameters:
index - index
Returns:
event priorily stored at the given index

clear

public void clear()
Remove all events from list.

listIterator

public IEventListIterator listIterator()
Get an iterator of the elements in this list (in proper sequence).
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.
Parameters:
index - index
Returns:
list iterator

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.