MutableProvider
A MutableProvider is a Provider that allows setting the value.
Functions
Creates and returns a new Provider that flat-maps the elements of the Collection obtained from this into a collection created by makeCollection using the transform function.
Creates and returns a new MutableProvider that maps to the value of the MutableProvider returned by transform.
Creates and returns new MutableProvider that lazily maps to the value of the MutableProvider returned by transform.
Creates and returns a new MutableProvider that maps the value of this bi-directionally using the provided transform and untransform functions.
Creates and returns a new Provider that maps each element of the Collection obtained from this using the transform function and filters out all null results. The results are added to a collection created by makeCollection.
Creates and returns a new Provider that maps each element of the Collection obtained from this using the transform function and adds the results to a collection created by makeCollection.
Creates and returns a new Provider that maps non-null values of this using the transform function. Null values will be passed through without transformation.
Creates and returns a new MutableProvider that maps non-null values of this bi-directionally using the provided transform and untransform functions. Null values will be passed through without transformation.
Creates and returns a new Provider that observes the list of this and propagates changes appropriately.
Creates and returns a new Provider that observes the map of this and propagates changes appropriately.
Creates a new MutableProvider that returns a fallback value if the value of this is null. Conversely, if the returned provider's value is set a value equal to value, the value of this will be set to null.
Creates a new MutableProvider that returns a fallback value obtained through the lazyValue lambda if the value of this is null. Conversely, if the returned provider's value is set to a value equal to the one obtained through lazyValue, the value of this will be set to null.
Creates a new MutableProvider that returns a fallback value which is re-created through the newValue lambda every time the value of this is set to null. Conversely, if the returned provider's value is set to a value equal to one returned by newValue, the value of this will be set to null.
Creates and returns a new Provider that throws an IllegalArgumentException with a message generated by message if the value is null
.
Creates and returns a new Provider that throws an IllegalArgumentException with message if the value is null
.
Sets the value of this MutableProvider to value.
Creates and returns a new Provider that flat-maps the elements of the Collection obtained from this into a collection created by makeCollection using the transform function.
Creates and returns a new MutableProvider that maps to the value of the MutableProvider returned by transform.
Creates and returns new MutableProvider that lazily maps to the value of the MutableProvider returned by transform.
Creates and returns a new MutableProvider that maps the value of this bi-directionally using the provided transform and untransform functions.
Creates and returns a new Provider that maps each element of the Collection obtained from this using the transform function.
Creates and returns a new Provider that maps each element of the Collection obtained from this using the transform function and filters out all null results. The results are added to a collection created by makeCollection.
Creates and returns a new Provider that maps each element of the Collection obtained from this using the transform function and adds the results to a collection created by makeCollection.
Creates and returns a new Provider that maps non-null values of this using the transform function. Null values will be passed through without transformation.
Creates and returns a new MutableProvider that maps non-null values of this bi-directionally using the provided transform and untransform functions. Null values will be passed through without transformation.
Creates and returns a new Provider that observes the list of this and propagates changes appropriately.
Creates and returns a new Provider that observes the map of this and propagates changes appropriately.
Creates a new MutableProvider that returns a fallback value if the value of this is null. Conversely, if the returned provider's value is set a value equal to value, the value of this will be set to null.
Creates and returns a new Provider that returns a fallback value obtained through provider if the value of this is null.
Creates a new MutableProvider that returns a fallback value obtained through the lazyValue lambda if the value of this is null. Conversely, if the returned provider's value is set to a value equal to the one obtained through lazyValue, the value of this will be set to null.
Creates a new MutableProvider that returns a fallback value which is re-created through the newValue lambda every time the value of this is set to null. Conversely, if the returned provider's value is set to a value equal to one returned by newValue, the value of this will be set to null.
Creates and returns a new Provider that throws an IllegalArgumentException with a message generated by message if the value is null
.
Creates and returns a new Provider that throws an IllegalArgumentException with message if the value is null
.
Removes all weak observers under the given owner.
Removes a previously registered weak observer.
Removes a previously registered subscriber.
Removes all weak subscribers under the given owner.
Removes a previously registered weak subscriber.