设计模式-原型模式(深拷贝)

浅拷贝:拷贝了对象的基本数据类型或其封装类,对于内部的数组、引用对象  依旧是采用引用的形式; @Data public class TestEntity implements Cloneable{ private String testAid; private String testAname; private TestEntityB testEntityB;
相关文章
相关标签/搜索