mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-11 03:13:38 +00:00
22 lines
768 B
Java
22 lines
768 B
Java
// version 14:
|
|
public record WithOnNestedRecord<T>() {
|
|
public record Nested(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")
|
|
@lombok.Generated
|
|
public WithOnNestedRecord.Nested withA(final String a) {
|
|
return this.a == a ? this : new WithOnNestedRecord.Nested(a, this.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")
|
|
@lombok.Generated
|
|
public WithOnNestedRecord.Nested withB(final String b) {
|
|
return this.b == b ? this : new WithOnNestedRecord.Nested(this.a, b);
|
|
}
|
|
}
|
|
}
|