blob: bd5676fe89622577b854e3d2e8fd3a13edf35ac6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
@lombok.EqualsAndHashCode(of="booleanValue")
@lombok.ToString(of="booleanValue")
class GetterLazyBoolean {
@lombok.Getter(lazy=true)
private final boolean booleanValue = calculateBoolean();
@lombok.Getter(lazy=true)
private final boolean otherBooleanValue = !calculateBoolean();
private static boolean calculateBoolean() {
return true;
}
}
|