aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/SuperBuilderInitializer.java
blob: 95943aa9a7be09388f7c8e01aa3bb8eeeaf95048 (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
class SuperBuilderInitializer {

	public static class One {
		private String world;

		{
			world = "Hello";
		}

		private static final String world2;

		static {
			world2 = "Hello";
		}


		@java.lang.SuppressWarnings("all")
		public static abstract class OneBuilder<C extends SuperBuilderInitializer.One, B extends SuperBuilderInitializer.One.OneBuilder<C, B>> {
			@java.lang.SuppressWarnings("all")
			private String world;

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

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

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

			@java.lang.Override
			@java.lang.SuppressWarnings("all")
			public java.lang.String toString() {
				return "SuperBuilderInitializer.One.OneBuilder(world=" + this.world + ")";
			}
		}


		@java.lang.SuppressWarnings("all")
		private static final class OneBuilderImpl extends SuperBuilderInitializer.One.OneBuilder<SuperBuilderInitializer.One, SuperBuilderInitializer.One.OneBuilderImpl> {
			@java.lang.SuppressWarnings("all")
			private OneBuilderImpl() {
			}

			@java.lang.Override
			@java.lang.SuppressWarnings("all")
			protected SuperBuilderInitializer.One.OneBuilderImpl self() {
				return this;
			}

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

		@java.lang.SuppressWarnings("all")
		protected One(final SuperBuilderInitializer.One.OneBuilder<?, ?> b) {
			this.world = b.world;
		}

		@java.lang.SuppressWarnings("all")
		public static SuperBuilderInitializer.One.OneBuilder<?, ?> builder() {
			return new SuperBuilderInitializer.One.OneBuilderImpl();
		}
	}
}