public class CloneUtils extends Object
CloneUtils class provides cloning utility methods.public static <T> T clone(T obj)
Note: This implementation will convert a CloneNotSupportedException
exception into a IllegalArgumentException.
T - the type of the object to be clonedobj - the object to be clonednull if
obj was nullIllegalArgumentException - if cloning is not supportedIllegalStateException - if cloning throws an unexpected exceptionNoSuchMethodError - if the object doesn't provide a public
implementation for the Object.clone() methodIllegalAccessError - if the object's clone() cannot be
accessedCopyright (C) 2015-2015 The Helenus Driver Project Authors.