public class CloneTools extends Object implements Serializable
| Constructor and Description |
|---|
CloneTools() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
clone(Object o)
底层克隆对象 利用序列化反序列化深层克隆对象
|
Object |
deepCopy() |
Object |
getO() |
void |
setO(Object o) |
public Object getO()
public void setO(Object o)
public Object deepCopy() throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic static Object clone(Object o) throws ClassNotFoundException, IOException
o - src clone objectClassNotFoundException - class not foundIOException - ioCopyright © 2020. All rights reserved.