aboutsummaryrefslogtreecommitdiff
path: root/website/features/GetterSetter.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2010-07-20 07:43:02 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2010-07-20 07:43:02 +0200
commitaaf8547d91a540334419f2faebb897b327d535d8 (patch)
tree77f31019f0c87e823c5ed6a2569170b8bce7c7f6 /website/features/GetterSetter.html
parentf17ba28daa683a4ef9f7743a1ccdde8f8632cb94 (diff)
downloadlombok-aaf8547d91a540334419f2faebb897b327d535d8.tar.gz
lombok-aaf8547d91a540334419f2faebb897b327d535d8.tar.bz2
lombok-aaf8547d91a540334419f2faebb897b327d535d8.zip
Added documentation for @RequiredArgsConstructor, @NoArgsConstructor, @AllArgsConstructor, and also how these generate @ConstructorProperties annotations.
Also updated @Getter and @Setter's documentation to explain their new class-level feature, and updated @Data's description to highlight how @Data is now truly nothing more than the combination of @RequiredArgsConstructor, @EqualsAndHashCode, @ToString, @Getter, and @Setter.
Diffstat (limited to 'website/features/GetterSetter.html')
-rw-r--r--website/features/GetterSetter.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/website/features/GetterSetter.html b/website/features/GetterSetter.html
index 5b70aaf4..0e9481a4 100644
--- a/website/features/GetterSetter.html
+++ b/website/features/GetterSetter.html
@@ -22,6 +22,12 @@
</p><p>
The generated getter/setter method will be <code>public</code> unless you explicitly specify an <code>AccessLevel</code>, as shown in the example above.
Legal access levels are <code>PUBLIC</code>, <code>PROTECTED</code>, <code>PACKAGE</code>, and <code>PRIVATE</code>.
+ </p><p>
+ You can also put a <code>@Getter</code> and/or <code>@Setter</code> annotation on a class. In that case, it's as if you annotate all the non-static fields in that
+ class with the annotation.
+ </p><p>
+ You can always manually disable getter/setter generation for any field by using the special <code>AccessLevel.NONE</code> access level. This lets you override the
+ behaviour of a <code>@Getter</code>, <code>@Setter</code> or <code>@Data</code> annotation on a class.
</p>
</div>
<div class="snippets">
@@ -63,7 +69,7 @@
</div>
<div class="footer">
<a href="index.html">Back to features</a> | <span class="disabled">Previous feature</span> | <a href="ToString.html">Next feature (@ToString)</a><br />
- <a href="../credits.html" class="creditsLink">credits</a> | <span class="copyright">Copyright &copy; 2009 Reinier Zwitserloot and Roel Spilker, licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>.</span>
+ <a href="../credits.html" class="creditsLink">credits</a> | <span class="copyright">Copyright &copy; 2009-2010 Reinier Zwitserloot and Roel Spilker, licensed under the <a href="http://www.opensource.org/licenses/mit-license.php">MIT license</a>.</span>
</div>
<div style="clear: both;"></div>
</div>