NewInstanceIfc

fun interface NewInstanceIfc<out T>

Permits implementers to indicate that they can create a new instance. The created instance should be a duplicate of the object instance in all relevant fields to achieve the same functionality.

Functions

Link copied to clipboard
abstract fun instance(): T

Returns a new instance