Is there a way to declare an annotation attribute for *any* enum?

前端 未结 3 2111
终归单人心
终归单人心 2021-02-07 04:04

At the moment I am developing an annotation-based binding-framework for Java Swing that uses JGoodies Binding under the hood. Unfortunately I am stuck with an annotation for a J

3条回答
  •  借酒劲吻你
    2021-02-07 04:30

    If your enums can implement all the same interface, you may find useful this question "Coding tip - intersection types and java enums"

提交回复
热议问题