aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/after-delombok/BuilderGenericMethod.java
blob: f70ae871c912cb927547ba4cb82cd5e7f0087af3 (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
import java.util.List;
import java.util.*;
class BuilderGenericMethod<T> {
	public <N extends Number> Map<N, T> foo(int a, long b) {
		return null;
	}
	@java.lang.SuppressWarnings("all")
	public class MapBuilder<N extends Number> {
		@java.lang.SuppressWarnings("all")
		private int a;
		@java.lang.SuppressWarnings("all")
		private long b;
		@java.lang.SuppressWarnings("all")
		MapBuilder() {
		}
		@java.lang.SuppressWarnings("all")
		public MapBuilder<N> a(final int a) {
			this.a = a;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public MapBuilder<N> b(final long b) {
			this.b = b;
			return this;
		}
		@java.lang.SuppressWarnings("all")
		public Map<N, T> build() {
			return BuilderGenericMethod.this.<N>foo(a, b);
		}
		@java.lang.Override
		@java.lang.SuppressWarnings("all")
		public java.lang.String toString() {
			return "BuilderGenericMethod.MapBuilder(a=" + this.a + ", b=" + this.b + ")";
		}
	}
	@java.lang.SuppressWarnings("all")
	public <N extends Number> MapBuilder<N> builder() {
		return new MapBuilder<N>();
	}
}