@lombok.Builder(setterPrefix = "set") class BuilderWithJavaBeansSpecCapitalization { public static @java.lang.SuppressWarnings("all") class BuilderWithJavaBeansSpecCapitalizationBuilder { private @java.lang.SuppressWarnings("all") java.util.ArrayList a; private @java.lang.SuppressWarnings("all") java.util.ArrayList aField; private @java.lang.SuppressWarnings("all") String bField; @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalizationBuilder() { super(); } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setZ(final String z) { if ((this.a == null)) this.a = new java.util.ArrayList(); this.a.add(z); return this; } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setA(final java.util.Collection a) { if ((a == null)) { throw new java.lang.NullPointerException("a cannot be null"); } if ((this.a == null)) this.a = new java.util.ArrayList(); this.a.addAll(a); return this; } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder clearA() { if ((this.a != null)) this.a.clear(); return this; } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setyField(final String yField) { if ((this.aField == null)) this.aField = new java.util.ArrayList(); this.aField.add(yField); return this; } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setaField(final java.util.Collection aField) { if ((aField == null)) { throw new java.lang.NullPointerException("aField cannot be null"); } if ((this.aField == null)) this.aField = new java.util.ArrayList(); this.aField.addAll(aField); return this; } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder clearaField() { if ((this.aField != null)) this.aField.clear(); return this; } /** * @return {@code this}. */ public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setbField(final String bField) { this.bField = bField; return this; } public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization build() { java.util.List a; switch (((this.a == null) ? 0 : this.a.size())) { case 0 : a = java.util.Collections.emptyList(); break; case 1 : a = java.util.Collections.singletonList(this.a.get(0)); break; default : a = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.a)); } java.util.List aField; switch (((this.aField == null) ? 0 : this.aField.size())) { case 0 : aField = java.util.Collections.emptyList(); break; case 1 : aField = java.util.Collections.singletonList(this.aField.get(0)); break; default : aField = java.util.Collections.unmodifiableList(new java.util.ArrayList(this.aField)); } return new BuilderWithJavaBeansSpecCapitalization(a, aField, this.bField); } public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { return (((((("BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder(a=" + this.a) + ", aField=") + this.aField) + ", bField=") + this.bField) + ")"); } } @lombok.Singular("z") java.util.List a; @lombok.Singular("yField") java.util.List aField; String bField; @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization(final java.util.List a, final java.util.List aField, final String bField) { super(); this.a = a; this.aField = aField; this.bField = bField; } public static @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder builder() { return new BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder(); } }