@lombok.experimental.SuperBuilder class SuperBuilderWithPrefixes { public static abstract @java.lang.SuppressWarnings("all") class SuperBuilderWithPrefixesBuilder> { private @java.lang.SuppressWarnings("all") int field; private @java.lang.SuppressWarnings("all") int otherField; private @java.lang.SuppressWarnings("all") java.util.ArrayList items; public SuperBuilderWithPrefixesBuilder() { super(); } /** * @return {@code this}. */ public @java.lang.SuppressWarnings("all") B field(final int field) { this.field = field; return self(); } /** * @return {@code this}. */ public @java.lang.SuppressWarnings("all") B otherField(final int otherField) { this.otherField = otherField; return self(); } public @java.lang.SuppressWarnings("all") B item(final String item) { if ((this.items == null)) this.items = new java.util.ArrayList(); this.items.add(item); return self(); } public @java.lang.SuppressWarnings("all") B items(final java.util.Collection items) { if ((items == null)) { throw new java.lang.NullPointerException("items cannot be null"); } if ((this.items == null)) this.items = new java.util.ArrayList(); this.items.addAll(items); return self(); } public @java.lang.SuppressWarnings("all") B clearItems() { if ((this.items != null)) this.items.clear(); return self(); } protected abstract @java.lang.SuppressWarnings("all") B self(); public abstract @java.lang.SuppressWarnings("all") C build(); public @java.lang.Override @java.lang.SuppressWarnings("all") java.lang.String toString() { return (((((("SuperBuilderWithPrefixes.SuperBuilderWithPrefixesBuilder(field=" + this.field) + ", otherField=") + this.otherField) + ", items=") + this.items) + ")"); } } private static final @java.lang.SuppressWarnings("all") class SuperBuilderWithPrefixesBuilderImpl extends SuperBuilderWithPrefixes.SuperBuilderWithPrefixesBuilder { private SuperBuilderWithPrefixesBuilderImpl() { super(); } protected @java.lang.Override @java.lang.SuppressWarnings("all") SuperBuilderWithPrefixes.SuperBuilderWithPrefixesBuilderImpl self() { return this; } public @java.lang.Override @java.lang.SuppressWarnings("all") SuperBuilderWithPrefixes build() { return new SuperBuilderWithPrefixes(this); } } int mField; int xOtherField; @lombok.Singular java.util.List mItems; protected @java.lang.SuppressWarnings("all") SuperBuilderWithPrefixes(final SuperBuilderWithPrefixes.SuperBuilderWithPrefixesBuilder b) { super(); this.mField = b.field; this.xOtherField = b.otherField; java.util.List items; switch (((b.items == null) ? 0 : b.items.size())) { case 0 : items = java.util.Collections.emptyList(); break; case 1 : items = java.util.Collections.singletonList(b.items.get(0)); break; default : items = java.util.Collections.unmodifiableList(new java.util.ArrayList(b.items)); } this.mItems = items; } public static @java.lang.SuppressWarnings("all") SuperBuilderWithPrefixes.SuperBuilderWithPrefixesBuilder builder() { return new SuperBuilderWithPrefixes.SuperBuilderWithPrefixesBuilderImpl(); } }