aboutsummaryrefslogtreecommitdiff
path: root/test/transform/resource/before/BuilderWithToBuilderWithSetterPrefix.java
blob: b33211e95077bf613fb6df5dec83bc0aa644944c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import java.util.List;
import lombok.Builder;
@Builder(toBuilder = true, setterPrefix = "with") @lombok.experimental.Accessors(prefix = "m")
class BuilderWithToBuilderWithSetterPrefix<T> {
	private String mOne, mTwo;
	@Builder.ObtainVia(method = "rrr", isStatic = true) private T foo;
	@lombok.Singular private List<T> bars;
	public static <K> K rrr(BuilderWithToBuilder<K> x) {
		return x.foo;
	}
}
@lombok.experimental.Accessors(prefix = "m")
class ConstructorWithToBuilderWithSetterPrefix<T> {
	private String mOne, mTwo;
	private T foo;
	@lombok.Singular private com.google.common.collect.ImmutableList<T> bars;
	@Builder(toBuilder = true, setterPrefix = "with")
	public ConstructorWithToBuilder(String mOne, @Builder.ObtainVia(field = "foo") T baz, com.google.common.collect.ImmutableList<T> bars) {
	}
}