mirror of
https://github.com/tiennm99/lombok.git
synced 2026-08-01 04:22:16 +00:00
17 lines
506 B
Java
17 lines
506 B
Java
import lombok.experimental.Wither;
|
|
class WitherPlain {
|
|
@lombok.experimental.Wither int i;
|
|
final @Wither int foo;
|
|
WitherPlain(int i, int foo) {
|
|
super();
|
|
this.i = i;
|
|
this.foo = foo;
|
|
}
|
|
public @java.lang.SuppressWarnings("all") WitherPlain withI(final int i) {
|
|
return ((this.i == i) ? this : new WitherPlain(i, this.foo));
|
|
}
|
|
public @java.lang.SuppressWarnings("all") WitherPlain withFoo(final int foo) {
|
|
return ((this.foo == foo) ? this : new WitherPlain(this.i, foo));
|
|
}
|
|
}
|