Package lombok
Annotation Type EqualsAndHashCode.Include
@Target({FIELD,METHOD})
@Retention(SOURCE)
public static @interface EqualsAndHashCode.Include
Configure the behaviour of how this member is treated in the
equals and hashCode implementation; if on a method, include the method's return value as part of calculating hashCode/equality.-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringreplacesDefaults to the method name of the annotated member.
-
Element Details
-
replaces
java.lang.String replacesDefaults to the method name of the annotated member. If on a method and the name equals the name of a default-included field, this member takes its place.- Returns:
- If present, this method serves as replacement for the named field.
- Default:
- ""
-