Package org.somda.sdc.common.util
Interface ObjectUtil
-
- All Known Implementing Classes:
ObjectUtilImpl
public interface ObjectUtilCreates deep copies of arbitrary objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> TdeepCopy(T obj)Creates deep copy of given object.
-
-
-
Method Detail
-
deepCopy
<T> T deepCopy(@Nullable T obj)Creates deep copy of given object.Attention: Do not clone nested classes, implementations might attempt to clone the surrounding object as well!
- Type Parameters:
T- any copyable object.- Parameters:
obj- the object to copy.- Returns:
- deep copy of given object or null if obj was null.
-
-