java.lang.Object
io.github.sugarcubes.cloner.NullCopier<T>
- All Implemented Interfaces:
ObjectCopier<T>,TrivialCopier<T>
Copier which always returns
null.-
Field Summary
Fields inherited from interface io.github.sugarcubes.cloner.ObjectCopier
CLONEABLE, COPYABLE, NOOP, NULL, OBJECT_ARRAY -
Method Summary
Modifier and TypeMethodDescriptioncopy(T original, CopyContext context) Creates a copy of the original object.
-
Method Details
-
copy
Description copied from interface:ObjectCopierCreates a copy of the original object. The implementation MUST callCopyContext.register(Object)method.- Specified by:
copyin interfaceObjectCopier<T>- Parameters:
original- original objectcontext- copying context ornullif the copier is trivial- Returns:
- copy result
- Throws:
Exception- if something went wrong
-