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
@@ -22,6 +22,11 @@ import lombok.Singular;
|
||||
this.children.addAll(children);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularListsBuilder<T> clearChildren() {
|
||||
if ((this.children != null))
|
||||
this.children.clear();
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularListsBuilder<T> scarf(Number scarf) {
|
||||
if ((this.scarves == null))
|
||||
this.scarves = new java.util.ArrayList<Number>();
|
||||
@@ -34,6 +39,11 @@ import lombok.Singular;
|
||||
this.scarves.addAll(scarves);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularListsBuilder<T> clearScarves() {
|
||||
if ((this.scarves != null))
|
||||
this.scarves.clear();
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularListsBuilder<T> rawList(java.lang.Object rawList) {
|
||||
if ((this.rawList == null))
|
||||
this.rawList = new java.util.ArrayList<java.lang.Object>();
|
||||
@@ -46,6 +56,11 @@ import lombok.Singular;
|
||||
this.rawList.addAll(rawList);
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularListsBuilder<T> clearRawList() {
|
||||
if ((this.rawList != null))
|
||||
this.rawList.clear();
|
||||
return this;
|
||||
}
|
||||
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularLists<T> build() {
|
||||
java.util.List<T> children;
|
||||
switch (((this.children == null) ? 0 : this.children.size())) {
|
||||
|
||||
Reference in new issue
Block a user