Lombok

From Chorke Wiki
Revision as of 17:27, 5 August 2021 by Shahed (talk | contribs)
Jump to navigation Jump to search
@Data
@NoArgsConstructor
@AllArgsConstructor
public class MyPojo {

    @Getter(AccessLevel.NONE)
    private Boolean xxx;

    public Boolean hasXxx() {
        return xxx;
    }
}

References