commonMain.org.brightify.hyperdrive.property.MutableObservableProperty.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
Hyperdrive implementation that's needed for observations and such
package org.brightify.hyperdrive.property
import org.brightify.hyperdrive.property.impl.ValueObservableProperty
/**
* [ObservableProperty] with the added functionality of a mutable value.
*/
public interface MutableObservableProperty: ObservableProperty {
public override var value: T
}
@Suppress("FunctionName")
public fun MutableObservableProperty(
initialValue: T,
equalityPolicy: ObservableProperty.EqualityPolicy = defaultEqualityPolicy(),
): MutableObservableProperty {
return ValueObservableProperty(initialValue, equalityPolicy)
}