我有这个Pojo:
Address of i on Stack: 0000001062AFFE80
Address of j on Heap: 0000018B11C530B0
Address of k on Heap: 0000018B11C53070
Function succeeded. The heap begins at 0000018B11C40740 and ends at 0000018B11D3F000
is i on Heap?: 0
Function succeeded. The heap begins at 0000018B11C40740 and ends at 0000018B11D3F000
is j on Heap?: 1
Function succeeded. The heap begins at 0000018B11C40740 and ends at 0000018B11D3F000
is k on Heap?: 1
我想做三件事:
这可能吗?
我也喜欢使用@Builder模式,我可以将前提条件与这种方法结合吗?
答案 0 :(得分:2)
用View
标记所有字段并使用@lombok.NonNull
;应该这样做。