aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-ecj/BuilderWithJavaBeansSpecCapitalization.java
blob: 1107254fea8d2d9e937d09e68a1087e18664a92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
@lombok.Builder(setterPrefix = "set") class BuilderWithJavaBeansSpecCapitalization {
  public static @java.lang.SuppressWarnings("all") class BuilderWithJavaBeansSpecCapitalizationBuilder {
    private @java.lang.SuppressWarnings("all") java.util.ArrayList<String> a;
    private @java.lang.SuppressWarnings("all") java.util.ArrayList<String> 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<String>();
      this.a.add(z);
      return this;
    }
    public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setA(final java.util.Collection<? extends String> a) {
      if ((a == null))
          {
            throw new java.lang.NullPointerException("a cannot be null");
          }
      if ((this.a == null))
          this.a = new java.util.ArrayList<String>();
      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<String>();
      this.aField.add(yField);
      return this;
    }
    public @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setaField(final java.util.Collection<? extends String> aField) {
      if ((aField == null))
          {
            throw new java.lang.NullPointerException("aField cannot be null");
          }
      if ((this.aField == null))
          this.aField = new java.util.ArrayList<String>();
      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<String> 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<String>(this.a));
      }
      java.util.List<String> 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<String>(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<String> a;
  @lombok.Singular("yField") java.util.List<String> aField;
  String bField;
  @java.lang.SuppressWarnings("all") BuilderWithJavaBeansSpecCapitalization(final java.util.List<String> a, final java.util.List<String> 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();
  }
}