mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-13 06:15:41 +00:00
11 lines
420 B
Java
11 lines
420 B
Java
// version 14:
|
|
import lombok.With;
|
|
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).
|
|
*/
|
|
public @java.lang.SuppressWarnings("all") @lombok.Generated WithOnRecordComponent withA(final String a) {
|
|
return ((this.a == a) ? this : new WithOnRecordComponent(a, this.b));
|
|
}
|
|
}
|