Skip to content

Commit

Permalink
[fixes #3169] Snippet for @Singular didn't include the clearCollect…
Browse files Browse the repository at this point in the history
…ion methods.
  • Loading branch information
rzwitserloot committed Apr 18, 2022
1 parent 773b374 commit 6594d95
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions website/usageExamples/Singular-snippetExample_post.jpage
Expand Up @@ -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();
Expand All @@ -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>();
Expand All @@ -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>();
Expand All @@ -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()) {
Expand Down

0 comments on commit 6594d95

Please sign in to comment.