IReactPropertyBag provides a thread-safe property storage.
Properties are identified by an instance of
IReactPropertyName. It is expected that there will be no direct use of this interface. Ideally, all usage should happen through strongly-typed accessors.
Gets value of the
It returns null if the property does not exist.
Gets or creates value of the
If the property exists, then the method returns its value. If the property does not exist, then this method creates it by calling the
The function may return null if the
createValue returns null when called. The
createValue is called outside of any locks. It is possible that
createValue result is not used when another thread sets the property value before the created value is stored.
IReactPropertyName name, Object value)
It returns the previously-stored property value. It returns null if the property did not exist.
If the new value is null, then the property is removed.