blob: 6df5c9c40279685cd7466e2d50f1fdd2c72e282c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
// version 14:
record WithByOnRecord(String a, String b) {
@java.lang.SuppressWarnings("all")
public WithByOnRecord withABy(final java.util.function.Function<? super String, ? extends String> transformer) {
return new WithByOnRecord(transformer.apply(this.a), this.b);
}
@java.lang.SuppressWarnings("all")
public WithByOnRecord withBBy(final java.util.function.Function<? super String, ? extends String> transformer) {
return new WithByOnRecord(this.a, transformer.apply(this.b));
}
}
|