Skip to content

Listener#doesAccept(Object) to prevent endless list of instanceof checks? #130

@Isfirs

Description

@Isfirs

Isn't it a better way to ask the listener if it may accept the Object by calling a Listener#doesAccept(Object):bool or Listener#doesAccept(Class):bool? (I don't care the actual name, but I prefer the class variant).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions