Interface ObjectCloner

All Known Implementing Classes:
CloneableCloner, SerializingCloner

public interface ObjectCloner
An object cloner. Creates a (possibly deep) clone of an object. Unlike Marshallers and Unmarshallers, ObjectCloners are thread-safe and can be used to clone object graphs concurrently.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final ObjectCloner
    The identity object cloner.
  • Method Summary

    Modifier and Type
    Method
    Description
    clone(Object orig)
    Create a deep clone of the given object.
    void
    Clear the cloner state and any caches.
  • Field Details

    • IDENTITY

      static final ObjectCloner IDENTITY
      The identity object cloner. Always returns the same object it is given.
  • Method Details