aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderInstanceMethod.java
blob: d0d5833f37af2335d5106866f3eb2ea838f65f74 (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
import java.util.List;
class BuilderInstanceMethod<T> {
	public String create(int show, final int yes, List<T> also, int $andMe) {
		return "" + show + yes + also + $andMe;
	}
	@java.lang.SuppressWarnings("all")
	public class StringBuilder {
		@java.lang.SuppressWarnings("all")
		private int show;
		@java.lang.SuppressWarnings("all")
		private int yes;
		@java.lang.SuppressWarnings("all")
		private List<T> also;
		@java.lang.SuppressWarnings("all")
		private int $andMe;
		@java.lang.SuppressWarnings("all")
		StringBuilder() {
		}
		@java.lang.SuppressWarnings("all")
		public BuilderInstanceMethod<T>.StringBuilder show(final int show) {
			this.show = show;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public BuilderInstanceMethod<T>.StringBuilder yes(final int yes) {
			this.yes = yes;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public BuilderInstanceMethod<T>.StringBuilder also(final List<T> also) {
			this.also = also;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public BuilderInstanceMethod<T>.StringBuilder $andMe(final int $andMe) {
			this.$andMe = $andMe;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public String build() {
			return BuilderInstanceMethod.this.create(this.show, this.yes, this.also, this.$andMe);
		}
		@java.lang.Override
		@java.lang.SuppressWarnings("all")
		public java.lang.String toString() {
			return "BuilderInstanceMethod.StringBuilder(show=" + this.show + ", yes=" + this.yes + ", also=" + this.also + ", $andMe=" + this.$andMe + ")";
		}
	}
	@java.lang.SuppressWarnings("all")
	public BuilderInstanceMethod<T>.StringBuilder builder() {
		return this.new StringBuilder();
	}
}