Skip to main content
Version: Version 5

Interface: Cloneable<T>

Represents an object that can be cloned to create a deep copy.

Type Parameters

T

The type of the object that the clone method returns.

Methods

clone()

clone(): T

Creates a deep copy of the object.

Returns

T

A new instance that is a deep copy of the original object.