Package org.somda.sdc.common.util
Class ObjectUtilImpl
- java.lang.Object
-
- org.somda.sdc.common.util.ObjectUtilImpl
-
- All Implemented Interfaces:
ObjectUtil
public class ObjectUtilImpl extends Object implements ObjectUtil
Default implementation of ObjectUtil.
-
-
Method Detail
-
deepCopy
public <T> T deepCopy(@Nullable T obj)Description copied from interface:ObjectUtilCreates deep copy of given object.Attention: Do not clone nested classes, implementations might attempt to clone the surrounding object as well!
- Specified by:
deepCopyin interfaceObjectUtil- Type Parameters:
T- any copyable object.- Parameters:
obj- the object to copy.- Returns:
- deep copy of given object or null if obj was null.
-
-