Annotation Interface Option.Redundant

Enclosing class:
Option

@Target(METHOD) @Retention(CLASS) public static @interface Option.Redundant
Mark a getter method as redundant - not important for equals, hashcode, and/or toString. The generated prototype will ignore the fields for these methods in equals and hashcode methods. All other fields will be included.

In case both properties are set to false, it is af this annotation is not present.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Set to false to mark this NOT redundant for equals and hashcode.
    boolean
    Set to false to mark this NOT redundant for toString.
  • Element Details

    • equality

      boolean equality
      Set to false to mark this NOT redundant for equals and hashcode.
      Returns:
      whether this should be ignored for equals and hashcode
      Default:
      true
    • stringValue

      boolean stringValue
      Set to false to mark this NOT redundant for toString.
      Returns:
      whether this should be ignored for toString
      Default:
      true