Package lombok
Annotation Type ToString.Include
@Target({FIELD,METHOD})
@Retention(SOURCE)
public static @interface ToString.Include
Configure the behaviour of how this member is rendered in the
toString; if on a method, include the method's return value in the output.-
Element Details
-
rank
int rankHigher ranks are printed first. Members of the same rank are printed in the order they appear in the source file.- Returns:
- ordering within the generating
toString(); higher numbers are printed first.
- Default:
- 0
-
name
java.lang.String nameDefaults to the field / method name of the annotated member. If the name equals the name of a default-included field, this member takes its place.- Returns:
- The name to show in the generated
toString(). Also, if this annotation is on a method and the name matches an existing field, it replaces that field.
- Default:
- ""
-