aboutsummaryrefslogtreecommitdiff
path: root/usage_examples/BuilderExample_post.jpage
diff options
context:
space:
mode:
Diffstat (limited to 'usage_examples/BuilderExample_post.jpage')
-rw-r--r--usage_examples/BuilderExample_post.jpage4
1 files changed, 4 insertions, 0 deletions
diff --git a/usage_examples/BuilderExample_post.jpage b/usage_examples/BuilderExample_post.jpage
index 0446a0dc..863ab19b 100644
--- a/usage_examples/BuilderExample_post.jpage
+++ b/usage_examples/BuilderExample_post.jpage
@@ -37,14 +37,18 @@ public class BuilderExample {
if (this.occupations == null) {
this.occupations = new java.util.ArrayList<String>();
}
+
this.occupations.add(occupation);
+ return this;
}
public BuilderExampleBuilder occupations(Collection<? extends String> occupations) {
if (this.occupations == null) {
this.occupations = new java.util.ArrayList<String>();
}
+
this.occupations.addAll(occupations);
+ return this;
}
public BuilderExample build() {