@Getter / @Setterpublic int getFoo() {return foo;} again.@Getter(lazy=true)@ToStringtoString for you!@EqualsAndHashCode
Generates
hashCode and equals implementations from the fields of your object.
and many others.
01 import lombok.ToString;
02
03 @ToString(exclude="id")
04 public class ToStringExample {
05 private static final int STATIC_VAR = 10;
06 @Getter @Setter(AccessLevel.PROTECTED) private String name;
07 @Getter @Setter private int id;
08
09 }