public interface AutoCloneable<T> extends Serializable
JSON.toJSONString() 实现序列化
基于fastjson JSON.parseObject(String, Class) ()} 实现反序列化| 限定符和类型 | 方法和说明 |
|---|---|
default T |
deepClone()
用于替换
Object.clone()
对象 |
default T |
shallowClone()
浅拷贝
|
default String |
toJsonString()
将当前对象转换成JSON字符串
使用fastJSON中的
JSON.toJSONString(Object) )} |
default T deepClone()
Object.clone()
对象
default T shallowClone()
default String toJsonString()
JSON.toJSONString(Object) )}Copyright © 2020. All rights reserved.