Read/write property
The usual implementation looks like:
class Foo:
val namePro : Pro.M[String] = Pro.M[String]("")
def name : String = namePro()
def name_=(v :String): Unit = namePro() = v
val barPro : Int.Pro.M = Int.Pro.M(0)
def bar : Int = valuePro()
def bar_=(v :Int) : Unit = valuePro() = v
- Source
- __.scala
trait Pro.ObservableMutable[Pro.ObservableMutable.A]
class Pro.ObservableMutable.X.Abstract[Pro.ObservableMutable.X.Abstract.A]
class Pro.ObservableMutable.X.Basic[Pro.ObservableMutable.X.Basic.A]
trait Pro.ObservableMutable.X.Base[Pro.ObservableMutable.X.Base.A]
class Pro.Mutable.X.Abstract[Pro.Mutable.X.Abstract.A]
class Pro.Mutable.X.Basic[Pro.Mutable.X.Basic.A]