Interface Copyable<T>

Type Parameters:
T - must be the type of the implementing class

public interface Copyable<T>
Generic interface for objects that can create an independent copy of themselves. Any operations on the copy must not affect the original in any way.
  • Method Summary

    Modifier and Type
    Method
    Description
    Create a copy of this object.
  • Method Details

    • copy

      T copy()
      Create a copy of this object.
      Returns:
      T