diff options
Diffstat (limited to 'website/features/Constructor.html')
-rw-r--r-- | website/features/Constructor.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/website/features/Constructor.html b/website/features/Constructor.html index ff32c86b..48c913b4 100644 --- a/website/features/Constructor.html +++ b/website/features/Constructor.html @@ -31,7 +31,7 @@ those parameters. </p><p> Each of these annotations allows an alternate form, where the generated constructor is always private, and an additional static factory method that wraps around the - private constructor is generated. This mode is enabled by supplying the <code>staticName</code> value for the annotation, like so: <code>@RequiredArgsConstructor(staticName = "of")</code>. + private constructor is generated. This mode is enabled by supplying the <code>staticName</code> value for the annotation, like so: <code>@RequiredArgsConstructor(staticName="of")</code>. Such a static factory method will infer generics, unlike a normal constructor. This means your API users get write <code>MapEntry.of("foo", 5)</code> instead of the much longer <code>new MapEntry<String, Integer>("foo", 5)</code>. </p><p> |