aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/BuilderExample_pre.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/BuilderExample_pre.jpage')
-rw-r--r--usage_examples/BuilderExample_pre.jpage11
1 files changed, 11 insertions, 0 deletions
diff --git a/usage_examples/BuilderExample_pre.jpage b/usage_examples/BuilderExample_pre.jpage
new file mode 100644
index 00000000..3b1b0df2
--- /dev/null
+++ b/usage_examples/BuilderExample_pre.jpage
@@ -0,0 +1,11 @@
+import lombok.Builder;
+import lombok.Singular;
+import java.util.Set;
+
+@Builder
+public class BuilderExample {
+ @Builder.Default private long created = System.currentTimeMillis();
+ private String name;
+ private int age;
+ @Singular private Set<String> occupations;
+}