mirror of
https://github.com/tiennm99/lombok.git
synced 2026-09-10 04:19:56 +00:00
[documentation] documenting the new-style include/exclude of ToString and EqualsAndHashCode
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import lombok.ToString;
|
||||
|
||||
@ToString(exclude="id")
|
||||
@ToString
|
||||
public class ToStringExample {
|
||||
private static final int STATIC_VAR = 10;
|
||||
private String name;
|
||||
private Shape shape = new Square(5, 10);
|
||||
private String[] tags;
|
||||
private int id;
|
||||
@ToString.Exclude private int id;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
|
||||
Reference in New Issue
Block a user