aboutsummaryrefslogtreecommitdiff
path: root/website/usageExamples/Singular-snippetExample_post.jpage
diff options
context:
space:
mode:
authorReinier Zwitserloot <r.zwitserloot@projectlombok.org>2022-04-18 04:06:49 +0200
committerReinier Zwitserloot <r.zwitserloot@projectlombok.org>2022-04-18 04:06:49 +0200
commit6594d95653a86acd0e0a5b0fed5b085589d98bd6 (patch)
treee74ff0d11ea23cbb71f2014874583322608b48fa /website/usageExamples/Singular-snippetExample_post.jpage
parent773b374340db705c3adc9e5e4c4228659c9d311b (diff)
downloadlombok-6594d95653a86acd0e0a5b0fed5b085589d98bd6.tar.gz
lombok-6594d95653a86acd0e0a5b0fed5b085589d98bd6.tar.bz2
lombok-6594d95653a86acd0e0a5b0fed5b085589d98bd6.zip
[fixes #3169] Snippet for `@Singular` didn't include the clearCollection methods.
Diffstat (limited to 'website/usageExamples/Singular-snippetExample_post.jpage')
-rw-r--r--website/usageExamples/Singular-snippetExample_post.jpage23
1 files changed, 23 insertions, 0 deletions
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<T extends Number> {
return this;
}
+ public SingularExampleBuilder<T> clearOccupations() {
+ if (this.occupations != null) this.occupations.clear();
+ return this;
+ }
+
public SingularExampleBuilder<T> axis(String axis) {
if (this.axes == null) {
this.axes = com.google.common.collect.ImmutableList.builder();
@@ -63,6 +68,11 @@ public class SingularExample<T extends Number> {
return this;
}
+ public SingularExampleBuilder<T> clearAxes() {
+ if (this.axes != null) this.axes.clear();
+ return this;
+ }
+
public SingularExampleBuilder<T> elf(Integer elfKey, T elfValue) {
if (this.elves$key == null) {
this.elves$key = new java.util.ArrayList<Integer>();
@@ -87,6 +97,14 @@ public class SingularExample<T extends Number> {
return this;
}
+ public SingularExampleBuilder<T> clearElves() {
+ if (this.elves$key != null) {
+ this.elves$key.clear();
+ this.elves$value.clear();
+ }
+ return this;
+ }
+
public SingularExampleBuilder<T> minutia(java.lang.Object minutia) {
if (this.minutiae == null) {
this.minutiae = new java.util.ArrayList<java.lang.Object>();
@@ -105,6 +123,11 @@ public class SingularExample<T extends Number> {
return this;
}
+ public SingularExampleBuilder<T> clearMinutiae() {
+ if (this.minutiae != null) this.minutiae.clear();
+ return this;
+ }
+
public SingularExample<T> build() {
java.util.Set<String> occupations;
switch (this.occupations == null ? 0 : this.occupations.size()) {