[builder] Added clearX() functionality for @Singular annotations for ecj

This commit is contained in:
Reinier Zwitserloot committed 2015-11-16 23:21:58 +01:00
1 parent b8a222006d
commit ae4035c9bf
11 files changed
+210

No files matched your search

@@ -37,6 +37,14 @@ import lombok.Singular;
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> clearWomen() {
if ((this.women$key != null))
{
this.women$key.clear();
this.women$value.clear();
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> man(K manKey, Number manValue) {
if ((this.men$key == null))
{
@@ -60,6 +68,14 @@ import lombok.Singular;
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> clearMen() {
if ((this.men$key != null))
{
this.men$key.clear();
this.men$value.clear();
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> rawMap(java.lang.Object rawMapKey, java.lang.Object rawMapValue) {
if ((this.rawMap$key == null))
{
@@ -83,6 +99,14 @@ import lombok.Singular;
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> clearRawMap() {
if ((this.rawMap$key != null))
{
this.rawMap$key.clear();
this.rawMap$value.clear();
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> stringMap(String stringMapKey, V stringMapValue) {
if ((this.stringMap$key == null))
{
@@ -106,6 +130,14 @@ import lombok.Singular;
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMapsBuilder<K, V> clearStringMap() {
if ((this.stringMap$key != null))
{
this.stringMap$key.clear();
this.stringMap$value.clear();
}
return this;
}
public @java.lang.SuppressWarnings("all") @javax.annotation.Generated("lombok") BuilderSingularMaps<K, V> build() {
java.util.Map<K, V> women;
switch (((this.women$key == null) ? 0 : this.women$key.size())) {