Interface Cloneable<T>

An interface that may be implemented to provide custom clone behavior.

interface Cloneable<T> {
    clone(): T;
}

Type Parameters

  • T

Methods

Methods

  • Produces a copy of this object.

    Returns T