-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
Description
API like...
Event<Element> event(String eventName)
Each element type will have to override unfortunately so that Event is typed with the more specific element.
Questions:
- Should event name (or key) be any different than String? Object? Generic type? (
implements Evented<String>vsEvented<EventDescriptor>or whatever an implementation might need) - Should it always return
Event<Element>? - Do some generic craziness like
Evented<T extends Evented<T>>to returnEvent<T>? - Don't accept string, accept a thing that determines event return type?
<T> Event<T> event(EventDesc<T> event)