SetOnce
A convenient class which offers a semi-immutable object wrapper implementation which allows one to set the value of an object exactly once, and retrieve it many times. If .set is called more than once, AlreadySetException is thrown and the operation will fail.
Constructors
Link copied to clipboard
constructor()
A default constructor which does not set the internal object, and allows setting it by calling .set.
Creates a new instance with the internal object set to the given object. Note that any calls to .set afterwards will result in AlreadySetException
Types
Link copied to clipboard
Thrown when SetOnce.set is called more than once.