Interface Cloneable<T>

All Superinterfaces:
Cloneable

public interface Cloneable<T> extends Cloneable
A cloneable class which promises that its clones are deep copies.
  • Method Summary

    Modifier and Type
    Method
    Description
    Make a deep copy of the object.
  • Method Details

    • clone

      T clone()
      Make a deep copy of the object. All mutable state, recursively, must be copied.
      Returns:
      A deep copy of the object.