blob: 217da88af9134dc12d5ca8b881119218bf2df1ec (
plain)
1
2
3
4
5
6
7
8
9
10
|
// version 14:
public record WithOnRecordComponent(String a, String b) {
/**
* @return a clone of this object, except with this updated property (returns {@code this} if an identical value is passed).
*/
@java.lang.SuppressWarnings("all")
public WithOnRecordComponent withA(final String a) {
return this.a == a ? this : new WithOnRecordComponent(a, this.b);
}
}
|