An abstract super class of shared object holder for operator classes. Clients can inherit this class and implement initialValue() to prepare shared value.
Returns the initial shared value.
Returns whether this container is initialized or not.
Discards the current shared value.
Manually sets a shared value.
Returns the shared value. If this container is not initialized yet, this will prepare an initial value and returns it.
Discards the current shared value. After this is invoked, isInitialzed() will return false until this container is re-initialized. If this does not hold a shared value, this does nothing.
Manually sets a shared value. The get() method will return the value until remove() is invoked. This forcibly replaces the shared value even if this container is already initialized.