Skip to content

Add Evented interface (name not final) #39

@alechenninger

Description

@alechenninger

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> vs Evented<EventDescriptor> or whatever an implementation might need)
  • Should it always return Event<Element>?
  • Do some generic craziness like Evented<T extends Evented<T>> to return Event<T> ?
  • Don't accept string, accept a thing that determines event return type? <T> Event<T> event(EventDesc<T> event)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions