final case class DynamicCell[T](f: () ⇒ T) extends Cell[T] with Product with Serializable
A cell that changes value on each access. This kind of cell could be used to access an external resource. Warning the function may be accessed many times during a single wiring recalculation, so it's best to use this as a front to a value that's memoized for some duration.
- Alphabetic
- By Inheritance
- DynamicCell
- Serializable
- Serializable
- Product
- Equals
- Cell
- Dependent
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new DynamicCell(f: () ⇒ T)
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
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
currentValue: (T, Long)
The cell's value and most recent change time
The cell's value and most recent change time
- Definition Classes
- DynamicCell → Cell
-
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
- val f: () ⇒ T
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
get: T
Get the cell's value
Get the cell's value
- Definition Classes
- Cell
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
lift[A, B](cell: Cell[B])(f: (T, B) ⇒ A): Cell[A]
- Definition Classes
- Cell
-
def
lift[A](f: (T) ⇒ 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
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
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
predicateChanged(which: Cell[_]): Unit
If the predicate cell changes, the Dependent will be notified.
If the predicate cell changes, the Dependent will be notified. This Cell has no predicates, so this is just Unit
- Definition Classes
- DynamicCell → Dependent
-
def
removeDependent[T <: Dependent](dep: T): T
Remove a Dependent to this cell.
Remove a Dependent to this cell.
- Definition Classes
- Cell
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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