com.activequant.utils.events
Class Event<T>
java.lang.Object
com.activequant.utils.events.Event<T>
- All Implemented Interfaces:
- IEventSink<T>, IEventSource<T>
public class Event<T>
- extends Object
- implements IEventSink<T>, IEventSource<T>
Generic event
History:
- [24.10.2006] Created (Erik Nijkamp)
- [30.10.2006] Added isEmpty() (Erik Nijkamp)
- Author:
- Erik Nijkamp
|
Constructor Summary |
Event()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Event
public Event()
fire
public void fire(T e)
- Specified by:
fire in interface IEventSink<T>
isEmpty
public boolean isEmpty()
addEventListener
public void addEventListener(IEventListener<T> listener)
- Specified by:
addEventListener in interface IEventSource<T>
removeEventListener
public boolean removeEventListener(IEventListener<T> listener)
- Specified by:
removeEventListener in interface IEventSource<T>
clear
public void clear()
forward
public void forward(IEventSink<T> target)
Copyright © 2012 ActiveQuant GmbH. All Rights Reserved.