final class ValueCell[A] extends Cell[A] with LiftValue[A]
A ValueCell holds a value that can be mutated.
- Alphabetic
- By Inheritance
- ValueCell
- LiftValue
- PSettableValueHolder
- SettableValueHolder
- Settable
- PValueHolder
- ValueHolder
- Cell
- Dependent
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ValueCell(initialValue: A)
Type Members
- type ValueType = A
- Definition Classes
- PValueHolder → ValueHolder
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addDependent[T <: Dependent](dep: T): T
Add a Dependent to this cell.
Add a Dependent to this cell. The Dependent will be notified when the Cell's value changes. Dependents are kept around as WeakReferences so they do not have to be explicitly removed from the List
- Definition Classes
- Cell
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def atomicUpdate(f: (ValueType) => ValueType): ValueType
Perform an atomic update of this Settable.
Perform an atomic update of this Settable. The current value is passed to the function and the ValueHolder is set to the result of the function. This is enclosed in the performAtomicOperation method which will, by default, synchronize this instance
- Definition Classes
- Settable
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def currentValue: (A, Long)
The cell's value and most recent change time
- def dependents: Seq[Dependent]
Get a List of the Dependents
Get a List of the Dependents
- Definition Classes
- Cell
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(other: Any): Boolean
- Definition Classes
- ValueCell → AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get: A
Get the cell's value
Get the cell's value
- Definition Classes
- Cell
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- ValueCell → AnyRef → Any
- def is: A
- Definition Classes
- LiftValue
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def lift[A, B](cell: Cell[B])(f: (A, B) => A): Cell[A]
- Definition Classes
- Cell
- def lift[A](f: (A) => A): Cell[A]
Create a new Cell by applying the function to this cell
Create a new Cell by applying the function to this cell
- Definition Classes
- Cell
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def notifyDependents(): Unit
Notify dependents of a state change.
Notify dependents of a state change. Note this will be performed on a separate thread asynchronously
- Definition Classes
- Cell
- def performAtomicOperation[T](f: => T): T
Perform an atomic operation on the Settable.
Perform an atomic operation on the Settable. By default synchronizes the instance, but it could use other mechanisms
- Definition Classes
- Settable
- def predicateChanged(which: Cell[_]): Unit
If the predicate cell changes, the Dependent will be notified.
- def removeDependent[T <: Dependent](dep: T): T
Remove a Dependent to this cell.
Remove a Dependent to this cell.
- Definition Classes
- Cell
- def set(v: A): A
Get the cell's value
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ValueCell → AnyRef → Any
- def unregisterFromAllDependencies(): Unit
Remove from all dependencies
Remove from all dependencies
- Attributes
- protected
- Definition Classes
- Dependent
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def whoDoIDependOn: Seq[Cell[_]]
Get a list of all the cells this Dependency depends on
Get a list of all the cells this Dependency depends on
- Attributes
- protected
- Definition Classes
- Dependent
- def youDependOnMe(who: Cell[_]): Unit
The Cell notifies the Dependent of the dependency
The Cell notifies the Dependent of the dependency
- Definition Classes
- Dependent
- def youDontDependOnMe(who: Cell[_]): Unit
The Cell notifies the Dependent of the removed dependency
The Cell notifies the Dependent of the removed dependency
- Definition Classes
- Dependent