SetOnce

constructor()

A default constructor which does not set the internal object, and allows setting it by calling .set.


constructor(obj: T)

Creates a new instance with the internal object set to the given object. Note that any calls to .set afterwards will result in AlreadySetException

See also

.set

Throws

if called more than once