@Retention(value=CLASS)
@Target(value=TYPE)
@Documented
public @interface Data
Mark a class eligible to auto generation on Object.equals(Object)
and Object.hashCode()
.
By default all fields will be used when generating the methods except
EqualField
annotation found on the fieldEqualIgnore
annotation presentedIf the Object.equals(Object)
method found in the class, then the method will not be generated
If the Object.hashCode()
method found in the class, then the metheod will not be generated
Modifier and Type | Optional Element and Description |
---|---|
boolean |
callSuper
Whether the generated
equals and hashCode method should call super methods. |
Copyright © 2014–2017 ActFramework. All rights reserved.