mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-12 16:15:29 +00:00
[documentation] documenting the new-style include/exclude of ToString and EqualsAndHashCode
This commit is contained in:
1 parent
649a7b72bf
commit
4fb9c6f7f8
5 files changed
+24
-15
No files matched your search
@@ -1,13 +1,13 @@
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@EqualsAndHashCode(exclude={"id", "shape"})
|
||||
@EqualsAndHashCode
|
||||
public class EqualsAndHashCodeExample {
|
||||
private transient int transientVar = 10;
|
||||
private String name;
|
||||
private double score;
|
||||
private Shape shape = new Square(5, 10);
|
||||
@EqualsAndHashCode.Exclude private Shape shape = new Square(5, 10);
|
||||
private String[] tags;
|
||||
private int id;
|
||||
@EqualsAndHashCode.Exclude private int id;
|
||||
|
||||
public String getName() {
|
||||
return this.name;
|
||||
|
||||
Reference in new issue
Block a user