aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/ConstructorsWithSuperBuilderDefaults.java
blob: c5188bb35c613a9cc179dfc3d64101fdbe4826e0 (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
class ConstructorsWithSuperBuilderDefaults {
	int x;
	int y;

	@java.lang.SuppressWarnings("all")
	private static int $default$x() {
		return 5;
	}


	@java.lang.SuppressWarnings("all")
	public static abstract class ConstructorsWithSuperBuilderDefaultsBuilder<C extends ConstructorsWithSuperBuilderDefaults, B extends ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<C, B>> {
		@java.lang.SuppressWarnings("all")
		private boolean x$set;
		@java.lang.SuppressWarnings("all")
		private int x$value;
		@java.lang.SuppressWarnings("all")
		private int y;

		/**
		 * @return {@code this}.
		 */
		@java.lang.SuppressWarnings("all")
		public B x(final int x) {
			this.x$value = x;
			x$set = true;
			return self();
		}

		/**
		 * @return {@code this}.
		 */
		@java.lang.SuppressWarnings("all")
		public B y(final int y) {
			this.y = y;
			return self();
		}

		@java.lang.SuppressWarnings("all")
		protected abstract B self();

		@java.lang.SuppressWarnings("all")
		public abstract C build();

		@java.lang.Override
		@java.lang.SuppressWarnings("all")
		public java.lang.String toString() {
			return "ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder(x$value=" + this.x$value + ", y=" + this.y + ")";
		}
	}


	@java.lang.SuppressWarnings("all")
	private static final class ConstructorsWithSuperBuilderDefaultsBuilderImpl extends ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<ConstructorsWithSuperBuilderDefaults, ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilderImpl> {
		@java.lang.SuppressWarnings("all")
		private ConstructorsWithSuperBuilderDefaultsBuilderImpl() {
		}

		@java.lang.Override
		@java.lang.SuppressWarnings("all")
		protected ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilderImpl self() {
			return this;
		}

		@java.lang.Override
		@java.lang.SuppressWarnings("all")
		public ConstructorsWithSuperBuilderDefaults build() {
			return new ConstructorsWithSuperBuilderDefaults(this);
		}
	}

	@java.lang.SuppressWarnings("all")
	protected ConstructorsWithSuperBuilderDefaults(final ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<?, ?> b) {
		if (b.x$set) this.x = b.x$value;
		 else this.x = ConstructorsWithSuperBuilderDefaults.$default$x();
		this.y = b.y;
	}

	@java.lang.SuppressWarnings("all")
	public static ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilder<?, ?> builder() {
		return new ConstructorsWithSuperBuilderDefaults.ConstructorsWithSuperBuilderDefaultsBuilderImpl();
	}

	@java.lang.SuppressWarnings("all")
	public ConstructorsWithSuperBuilderDefaults() {
		this.x = ConstructorsWithSuperBuilderDefaults.$default$x();
	}

	@java.lang.SuppressWarnings("all")
	public ConstructorsWithSuperBuilderDefaults(final int x, final int y) {
		this.x = x;
		this.y = y;
	}
}