| Constructor and Description |
|---|
CopyHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
copy(Object thing)
Copy this object if needed.
|
static boolean |
isCopyable(Object thing)
Check if an object is copyable using the
copy(Object) method. |
public static boolean isCopyable(Object thing)
copy(Object) method.thing: - the object that needs to be copiedpublic static Object copy(Object thing) throws CopyNotSupportedException
thing - : this object that needs to be copiedCopyNotSupportedException - if thing needs to be copied but cannot be