PublicCloneable

open class PublicCloneable<X : PublicCloneable<X>> : Cloneable

Subclasses get a public clone method without a silly catch of an impossible exception.

Author

Mark van Gulik

Parameters

X

The self-type of the object to be cloned.

Constructors

Link copied to clipboard
fun PublicCloneable()

Functions

Link copied to clipboard
open override fun clone(): X

Inheritors

Link copied to clipboard