myesn

myEsn2E9

hi
github

[未完成]Project Lombok 之我最常用的几个注解

Stable#

@Data:A shortcut for @ToString, @EqualsAndHashCode, @Getter on all fields, @Setter on all non-final fields, and @RequiredArgsConstructor!

@EqualsAndHashCode

Experimental#

@Accessors:实例中的 get、set 支持链式调用,也就是返回自身。我一般写成 @Accessors(chain = true) ,这样 setters 会返回 this 而不是 void。

参考#

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.