public class Emit extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
Emit.IEmitter
Interface for objects that can emit/broadcast "events" of various eventIDs
|
static interface |
Emit.IListener<A0>
Client Interface to listen to "events".
|
static interface |
Emit.IListenerList<A0>
Interface for emitting only a single eventID of event.
|
Modifier and Type | Field and Description |
---|---|
static String |
NEW_LISTENER |
static Object[] |
NO_MORE |
static String |
REMOVE_LISTENER |
Constructor and Description |
---|
Emit() |
Modifier and Type | Method and Description |
---|---|
static int |
listenerCount(Emit.IEmitter emitter,
Object event)
To mimic node.js EventEmitter, this is static.
|
public static final String NEW_LISTENER
public static final String REMOVE_LISTENER
public static final Object[] NO_MORE
public static int listenerCount(Emit.IEmitter emitter, Object event)
emitter
- event
-