@Getter
/ @Setter
public int getFoo() {return foo;}
again.@ToString
toString
for you!@EqualsAndHashCode
hashCode
and equals
implementations from the fields of your object.@Data
@ToString
, @EqualsAndHashCode
,
@Getter
on all fields, and @Setter
on all non-final fields. You even
get a free constructor to initialize your final fields!@Cleanup
close()
methods safely with no hassle.@Synchronized
synchronized
done right: Don't expose your locks.@SneakyThrows
lombok.jar
in your IDE, you can also check out the javadoc.