Annotation Type Key


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface Key
    Annotation used to declare that a field is a key for the class it belongs to and then it will be used to calculate the equals/hashCode methods of the class itself. Works for concrete classes on fields. Methods on classes or interfaces is not yet supported.