aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderWithJavaBeansSpecCapitalization.java
blob: 4a21f2c3058bfc1e188b6d875c32f60b6b738616 (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
100
101
102
103
104
105
106
class BuilderWithJavaBeansSpecCapitalization {
	java.util.List<String> a;
	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) {
		this.a = a;
		this.aField = aField;
		this.bField = bField;
	}
	@java.lang.SuppressWarnings("all")
	public static class BuilderWithJavaBeansSpecCapitalizationBuilder {
		@java.lang.SuppressWarnings("all")
		private java.util.ArrayList<String> a;
		@java.lang.SuppressWarnings("all")
		private java.util.ArrayList<String> aField;
		@java.lang.SuppressWarnings("all")
		private String bField;
		@java.lang.SuppressWarnings("all")
		BuilderWithJavaBeansSpecCapitalizationBuilder() {
		}
		@java.lang.SuppressWarnings("all")
		public BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setZ(final String z) {
			if (this.a == null) this.a = new java.util.ArrayList<String>();
			this.a.add(z);
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public 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;
		}
		@java.lang.SuppressWarnings("all")
		public BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder clearA() {
			if (this.a != null) this.a.clear();
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setyField(final String yField) {
			if (this.aField == null) this.aField = new java.util.ArrayList<String>();
			this.aField.add(yField);
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public 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;
		}
		@java.lang.SuppressWarnings("all")
		public BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder clearaField() {
			if (this.aField != null) this.aField.clear();
			return this;
		}
		/**
		 * @return {@code this}.
		 */
		@java.lang.SuppressWarnings("all")
		public BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder setbField(final String bField) {
			this.bField = bField;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public 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);
		}
		@java.lang.Override
		@java.lang.SuppressWarnings("all")
		public java.lang.String toString() {
			return "BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder(a=" + this.a + ", aField=" + this.aField + ", bField=" + this.bField + ")";
		}
	}
	@java.lang.SuppressWarnings("all")
	public static BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder builder() {
		return new BuilderWithJavaBeansSpecCapitalization.BuilderWithJavaBeansSpecCapitalizationBuilder();
	}
}