java如何深复制一个类
java如何复制一个类
添加依赖
<dependency>
<groupId>commons-lang</groupId>
<artifactId>commons-lang</artifactId>
<version>2.4</version>
</dependency>
ArrayList cloned = (ArrayList)SerializationUtils.clone(new ArrayList<>());
Loading...