Add record support

This commit is contained in:
Rawi01 committed 2020-09-10 10:32:14 +02:00
1 parent 9148294f78
commit 0064c53427
120 files changed
+1168 -141

No files matched your search

@@ -0,0 +1,13 @@
import lombok.experimental.WithBy;
record WithByOnRecord(String a, String b) {
/* Implicit */ private final String a;
/* Implicit */ private final String b;
public WithByOnRecord( String a, String b) {
super();
.a = a;
.b = b;
}
public @java.lang.SuppressWarnings("all") WithByOnRecord withABy(final java.util.function.Function<? super String, ? extends String> transformer) {
return new WithByOnRecord(transformer.apply(this.a), this.b);
}
}