- Enclosing class:
Option
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 ElementsModifier and TypeOptional ElementDescriptionbooleanSet tofalseto mark this NOT redundant for equals and hashcode.booleanSet tofalseto mark this NOT redundant for toString.
-
Element Details
-
equality
boolean equalitySet tofalseto mark this NOT redundant for equals and hashcode.- Returns:
- whether this should be ignored for equals and hashcode
- Default:
true
-
stringValue
boolean stringValueSet tofalseto mark this NOT redundant for toString.- Returns:
- whether this should be ignored for toString
- Default:
true
-