blob: 06164fe900957d047d7bb5f076facf5fa47bb58d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
@lombok.With @lombok.experimental.Accessors(javaBeansSpecCapitalization = true) class WithOnJavaBeansSpecCapitalization {
int aField;
WithOnJavaBeansSpecCapitalization(int aField) {
super();
}
/**
* @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") WithOnJavaBeansSpecCapitalization withaField(final int aField) {
return ((this.aField == aField) ? this : new WithOnJavaBeansSpecCapitalization(aField));
}
}
@lombok.With class WithOffJavaBeansSpecCapitalization {
int aField;
WithOffJavaBeansSpecCapitalization(int aField) {
super();
}
/**
* @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") WithOffJavaBeansSpecCapitalization withAField(final int aField) {
return ((this.aField == aField) ? this : new WithOffJavaBeansSpecCapitalization(aField));
}
}
|