org.objectweb.proactive.core.event
Interface AbstractEventProducer.ListenerList

Enclosing interface:
AbstractEventProducer

protected static interface AbstractEventProducer.ListenerList

A class implementing this interface provide a minimum set of methods to support the addition and removal of listener.

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team

Method Summary
 boolean add(ProActiveListener listener)
          Adds the given listener
 boolean contains(ProActiveListener listener)
          Returns true if listener is a listener contained in the list.
 boolean isEmpty()
          Returns true if no listener is in the list.
 java.util.Iterator iterator()
          Returns an iterator on the listeners of the list
 boolean remove(ProActiveListener listener)
          Removes the given listener
 int size()
          Returns the number of listeners in the list.
 

Method Detail

isEmpty

public boolean isEmpty()
Returns true if no listener is in the list.

Returns:
true if no listener is in the list.

size

public int size()
Returns the number of listeners in the list.

Returns:
the number of listeners in the list.

contains

public boolean contains(ProActiveListener listener)
Returns true if listener is a listener contained in the list.

Returns:
true if listener is a listener contained in the list.

add

public boolean add(ProActiveListener listener)
Adds the given listener

Returns:
true if the listener has been added.

remove

public boolean remove(ProActiveListener listener)
Removes the given listener

Returns:
true if the listener has been removed.

iterator

public java.util.Iterator iterator()
Returns an iterator on the listeners of the list

Returns:
an iterator on the listeners of the list


Copyright © April 2004 INRIA All Rights Reserved.