aboutsummaryrefslogtreecommitdiff
path: root/website/features/EqualsAndHashCode.html
diff options
context:
space:
mode:
authorReinier Zwitserloot <reinier@zwitserloot.com>2014-04-29 22:00:30 +0200
committerReinier Zwitserloot <reinier@zwitserloot.com>2014-04-29 22:00:30 +0200
commit5fcb9284c13e58750ec6c36a1eae5869a5a52925 (patch)
treeba296b4d4d0e92ae724e6568dddd679357e7905a /website/features/EqualsAndHashCode.html
parentf93478e7b56494ce86e9ea7d4585f288489073e0 (diff)
downloadlombok-5fcb9284c13e58750ec6c36a1eae5869a5a52925.tar.gz
lombok-5fcb9284c13e58750ec6c36a1eae5869a5a52925.tar.bz2
lombok-5fcb9284c13e58750ec6c36a1eae5869a5a52925.zip
added docs for the new onParam feature on EqualsAndHashCode, and some tiny stylistic nitpicking.
Diffstat (limited to 'website/features/EqualsAndHashCode.html')
-rw-r--r--website/features/EqualsAndHashCode.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/website/features/EqualsAndHashCode.html b/website/features/EqualsAndHashCode.html
index 6b2507c6..285a27af 100644
--- a/website/features/EqualsAndHashCode.html
+++ b/website/features/EqualsAndHashCode.html
@@ -38,7 +38,9 @@
why such a method is necessary are explained in this paper: <a href="http://www.artima.com/lejava/articles/equality.html">How to Write an Equality Method in Java</a>.
If all classes in a hierarchy are a mix of scala case classes and classes with lombok-generated equals methods, all equality will 'just work'.
If you need to write your own equals methods, you should always override <code>canEqual</code> if you change <code>equals</code> and <code>hashCode</code>.
- </p>
+ </p><p>
+ <em>NEW in Lombok 1.14.0: </em>To put annotations on the <code>other</code> parameter of the <code>equals</code> (and, if relevant, <code>canEqual</code>) method, you can use <code>onParam=@__({@AnnotationsHere})</code>. Be careful though! This is an experimental feature. For more details see the documentation on the <a href="experimental/onX.html">onX</a> feature.
+
</div>
<div class="snippets">
<div class="pre">