mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
[builder] Added clearX() functionality for @Singular annotations for ecj
This commit is contained in:
1 parent
b8a222006d
commit
ae4035c9bf
11 files changed
+210
No files matched your search
@@ -20,6 +20,11 @@ import lombok.Singular;
|
||||
this.things.addAll(things);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder clearThings() {
|
||||
if ((this.things != null))
|
||||
this.things.clear();
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder widget(String widget) {
|
||||
if ((this.widgets == null))
|
||||
this.widgets = new java.util.ArrayList<String>();
|
||||
@@ -32,6 +37,11 @@ import lombok.Singular;
|
||||
this.widgets.addAll(widgets);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder clearWidgets() {
|
||||
if ((this.widgets != null))
|
||||
this.widgets.clear();
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder items(String items) {
|
||||
if ((this.items == null))
|
||||
this.items = new java.util.ArrayList<String>();
|
||||
@@ -44,6 +54,11 @@ import lombok.Singular;
|
||||
this.items.addAll(items);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAutoBuilder clearItems() {
|
||||
if ((this.items != null))
|
||||
this.items.clear();
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularNoAuto build() {
|
||||
java.util.List<String> things;
|
||||
switch (((this.things == null) ? 0 : this.things.size())) {
|
||||
|
||||
Reference in new issue
Block a user