Class ObjectUtilImpl

    • Method Detail

      • deepCopy

        public <T> T deepCopy​(@Nullable
                              T obj)
        Description copied from interface: ObjectUtil
        Creates deep copy of given object.

        Attention: Do not clone nested classes, implementations might attempt to clone the surrounding object as well!

        Specified by:
        deepCopy in interface ObjectUtil
        Type Parameters:
        T - any copyable object.
        Parameters:
        obj - the object to copy.
        Returns:
        deep copy of given object or null if obj was null.