- 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
Modifier and TypeOptional ElementDescriptionboolean
Set tofalse
to mark this NOT redundant for equals and hashcode.boolean
Set tofalse
to mark this NOT redundant for toString.
-
Element Details
-
equality
boolean equalitySet tofalse
to mark this NOT redundant for equals and hashcode.- Returns:
- whether this should be ignored for equals and hashcode
- Default:
true
-
stringValue
boolean stringValueSet tofalse
to mark this NOT redundant for toString.- Returns:
- whether this should be ignored for toString
- Default:
true
-