@FunctionalInterface public interface Copier
| Modifier and Type | Method and Description |
|---|---|
<T> T |
copy(T object,
@NonNull ClassLoader classLoader)
Returns a deep copy of the object.
|
static Copier |
identity() |
<T> T copy(T object,
@NonNull ClassLoader classLoader)
T - the type of object being copiedobject - the object to copyclassLoader - the classloader to instantiate withstatic Copier identity()