It's a bit verbose, but you can provide your own isXXX
, and then use AccessLevel.NONE
to tell Lombok not to generate the getXXX
:
@Data
public class OneOfPaddysPojos {
// ... other fields ...
@Getter(AccessLevel.NONE)
private Boolean XXX;
public Boolean isXXX() {
return XXX;
}
}
(And hey, at least it's not quite as verbose as if you weren't using Lombok to begin with!)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…