cloner library

Utilities for producing deep clones

Classes

Cloner
Provides access to the global cloning implementation.
ICloneable<T extends Object>
Contracts used by Cloner and collection helpers.
ICopyable<T extends Object>
Use for a shallow, element-wise copy.
MapClone<K, V>
Typed Map wrapper providing safe copy and typed deep-clone operations.

Extensions

XListCloner on List<E>
List cloning helpers that perform element-wise deep cloning via Cloner.
XMapCloner on Map<K, V>
Map cloning helpers that perform value-wise deep cloning.
XSetCloner on Set<E>
Set cloning helpers that perform element-wise deep cloning via Cloner.

Exceptions / Errors

CircularReferenceCloneException
Thrown when a circular reference is detected during cloning.
LimitExceededException
Thrown when some limit is exceeded.
UnsupportedTypedCloneException
Thrown when typed cloning encounters an unsupported nested structure.