org.apache.pivot.tools.wtk
Class EventLogger.IncludeEventGroup

java.lang.Object
  extended by org.apache.pivot.tools.wtk.EventLogger.IncludeEventGroup
All Implemented Interfaces:
Iterable<Method>, Group<Method>
Enclosing class:
EventLogger

public final class EventLogger.IncludeEventGroup
extends Object
implements Group<Method>, Iterable<Method>

A read/write group of events that an event logger will actually fire. This group is guaranteed to be a subset of the declared event group.


Method Summary
 boolean add(Method event)
          Adds an element to the group.
 boolean contains(Method event)
          Tests the existence of an element in the group.
 Iterator<Method> iterator()
           
 boolean remove(Method event)
          Removes an element from the group.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

add

public boolean add(Method event)
Description copied from interface: Group
Adds an element to the group.

Specified by:
add in interface Group<Method>
Parameters:
event - The element to add to the group.
Returns:
true if the element was added to the group; false, otherwise.

remove

public boolean remove(Method event)
Description copied from interface: Group
Removes an element from the group.

Specified by:
remove in interface Group<Method>
Parameters:
event - The element to remove from the set.
Returns:
true if the element was removed from the group; false, otherwise.

contains

public boolean contains(Method event)
Description copied from interface: Group
Tests the existence of an element in the group.

Specified by:
contains in interface Group<Method>
Parameters:
event - The element whose presence in the group is to be tested.
Returns:
true if the element exists in the group; false, otherwise.

iterator

public Iterator<Method> iterator()
Specified by:
iterator in interface Iterable<Method>