fulmine.event.listener
Class EventListenerUtils
java.lang.Object
fulmine.event.listener.EventListenerUtils
public final class EventListenerUtils
- extends Object
Provides a convenience method to create filters
- Author:
- Ramon Servadei
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EventListenerUtils
public EventListenerUtils()
createFilter
public static Class<? extends IEvent>[] createFilter(Class<? extends IEvent>... filter)
- Create an event filter based on the
Class
objects passed in.
Note this method creates a new array for each call. If this
method is called frequently, consider caching the result.
- Parameters:
filter
- the classes that form the event filter
- Returns:
- an array of classes forming an
IEvent
filter - See Also:
IEventListener.getEventTypeFilter()
Copyright © 2007-2009. All Rights Reserved.