Interface Copyable<T>


public interface Copyable<T>
An interface for classes which know how to clone themselves. Similar to Cloneable.
  • Method Summary

    Modifier and Type
    Method
    Description
    copy(CopyContext context)
    Creates deep copy of this object.
  • Method Details

    • copy

      T copy(CopyContext context)
      Creates deep copy of this object. The implementation MUST call CopyContext.register(Object) method.
      Parameters:
      context - copying context
      Returns:
      clone of this object