From 6594d95653a86acd0e0a5b0fed5b085589d98bd6 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Mon, 18 Apr 2022 04:06:49 +0200 Subject: [fixes #3169] Snippet for `@Singular` didn't include the clearCollection methods. --- .../Singular-snippetExample_post.jpage | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'website/usageExamples/Singular-snippetExample_post.jpage') diff --git a/website/usageExamples/Singular-snippetExample_post.jpage b/website/usageExamples/Singular-snippetExample_post.jpage index 4e2b0460..fd922ac4 100644 --- a/website/usageExamples/Singular-snippetExample_post.jpage +++ b/website/usageExamples/Singular-snippetExample_post.jpage @@ -45,6 +45,11 @@ public class SingularExample { return this; } + public SingularExampleBuilder clearOccupations() { + if (this.occupations != null) this.occupations.clear(); + return this; + } + public SingularExampleBuilder axis(String axis) { if (this.axes == null) { this.axes = com.google.common.collect.ImmutableList.builder(); @@ -63,6 +68,11 @@ public class SingularExample { return this; } + public SingularExampleBuilder clearAxes() { + if (this.axes != null) this.axes.clear(); + return this; + } + public SingularExampleBuilder elf(Integer elfKey, T elfValue) { if (this.elves$key == null) { this.elves$key = new java.util.ArrayList(); @@ -87,6 +97,14 @@ public class SingularExample { return this; } + public SingularExampleBuilder clearElves() { + if (this.elves$key != null) { + this.elves$key.clear(); + this.elves$value.clear(); + } + return this; + } + public SingularExampleBuilder minutia(java.lang.Object minutia) { if (this.minutiae == null) { this.minutiae = new java.util.ArrayList(); @@ -105,6 +123,11 @@ public class SingularExample { return this; } + public SingularExampleBuilder clearMinutiae() { + if (this.minutiae != null) this.minutiae.clear(); + return this; + } + public SingularExample build() { java.util.Set occupations; switch (this.occupations == null ? 0 : this.occupations.size()) { -- cgit