com.activequant.utils.events
Class Event<T>

java.lang.Object
  extended by 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()
           
 
Method Summary
 void addEventListener(IEventListener<T> listener)
           
 void clear()
           
 void fire(T e)
           
 void forward(IEventSink<T> target)
           
 boolean isEmpty()
           
 boolean removeEventListener(IEventListener<T> listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Event

public Event()
Method Detail

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.