blob: d1a602a6a81363b8320fe2febb82b95146d1cae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// version 14:
import lombok.With;
record WithOnRecordComponent(String a, String b) {
/* Implicit */ private final String a;
/* Implicit */ private final String b;
public WithOnRecordComponent( String a, String b) {
super();
.a = a;
.b = b;
}
public @java.lang.SuppressWarnings("all") WithOnRecordComponent withA(final String a) {
return ((this.a == a) ? this : new WithOnRecordComponent(a, this.b));
}
}
|