From 14af3bec3b601d52c6a34710a63e22fceebf8dde Mon Sep 17 00:00:00 2001 From: Enrique da Costa Cambio Date: Tue, 17 Mar 2015 18:13:27 -0700 Subject: Allow @Builder on instance methods --- website/features/Builder.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'website') diff --git a/website/features/Builder.html b/website/features/Builder.html index b4731b07..033e49e4 100644 --- a/website/features/Builder.html +++ b/website/features/Builder.html @@ -28,16 +28,16 @@ @Builder lets you automatically produce the code required to have your class be instantiable with code such as:
Person.builder().name("Adam Savage").city("San Francisco").job("Mythbusters").job("Unchained Reaction").build();

- @Builder can be placed on a class, or on a constructor, or on a static method. While the "on a class" and "on a constructor" - mode are the most common use-case, @Builder is most easily explained with the "static method" use-case. + @Builder can be placed on a class, or on a constructor, or on a method. While the "on a class" and "on a constructor" + mode are the most common use-case, @Builder is most easily explained with the "method" use-case.

- A static method annotated with @Builder (from now on called the target) causes the following 7 things to be generated: