Modifier and Type | Method and Description |
---|---|
static <T> T |
cloneDeep(T value)
Creates a deep clone of the specified value and returns it.
|
static <T> T |
cloneReflective(T value)
Clones the given value and returns the non-deep clone.
|
public static <T> T cloneDeep(T value)
T
- the type of the value to clonevalue
- the value to clonepublic static <T> T cloneReflective(T value)
T
- the type of the value to clonevalue
- the value to cloneIllegalArgumentException
- if no clone method exists or if invoking the clone method
caused an exceptionCopyright © 2024. All rights reserved.