diff options
author | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-05-15 01:07:03 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@zwitserloot.com> | 2018-05-15 01:07:03 +0200 |
commit | 4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4 (patch) | |
tree | d7797bc15e487dc98c048d6e5e063698331fa22e /website/usageExamples/EqualsAndHashCodeExample_pre.jpage | |
parent | 649a7b72bf8119e286e991bce29fb63bdb26c09d (diff) | |
download | lombok-4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4.tar.gz lombok-4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4.tar.bz2 lombok-4fb9c6f7f82d020a9ebcae9816e911ecd4c047a4.zip |
[documentation] documenting the new-style include/exclude of ToString and EqualsAndHashCode
Diffstat (limited to 'website/usageExamples/EqualsAndHashCodeExample_pre.jpage')
-rw-r--r-- | website/usageExamples/EqualsAndHashCodeExample_pre.jpage | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/website/usageExamples/EqualsAndHashCodeExample_pre.jpage b/website/usageExamples/EqualsAndHashCodeExample_pre.jpage index 64faf59f..cf235917 100644 --- a/website/usageExamples/EqualsAndHashCodeExample_pre.jpage +++ b/website/usageExamples/EqualsAndHashCodeExample_pre.jpage @@ -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; |