@CompileStatic @EqualsAndHashCode @ToString class Event<T> extends EventObject
Wraps an event
T
data
String
id
Map<String, Object>
parameters
Event(String id, T data)
Event(String id, Map<String, Object> parameters, T data)
<T>
static Event<T>
from(String id, T obj)
from(String id, Map<String, Object> parameters, T obj)
class EventObject
equals, getClass, getSource, hashCode, notify, notifyAll, toString, wait, wait, wait
The data of the event
The id of the event
The parameters for the event
Wrap the given object with an Event.
obj
Groovy Documentation