mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 12:15:00 +00:00
20 lines
662 B
Java
20 lines
662 B
Java
// version 14:
|
|
public record WithOnRecord(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 WithOnRecord withA(final String a) {
|
|
return this.a == a ? this : new WithOnRecord(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 WithOnRecord withB(final String b) {
|
|
return this.b == b ? this : new WithOnRecord(this.a, b);
|
|
}
|
|
}
|