All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.org.brightify.hyperdrive.property.MutableObservableProperty.kt Maven / Gradle / Ivy

There is a newer version: 0.1.159
Show newest version
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)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy