LazyVal

org.sphix.LazyVal
trait LazyVal[A] extends FirableVal[A]

Attributes

Graph
Supertypes
trait FirableVal[A]
trait ValImpl[A]
class Val[A]
trait ObservableValue[A]
trait Observable
class Object
trait Matchable
class Any
Known subtypes
class ConvertedVar[A, B]
class DelayedVal[A]
class Flattener[A]
class Func[A]
class Func1[B, A]
trait VarImpl[A]
class SimpleVar[A]

Members list

Concise view

Value members

Abstract methods

protected def compute: A

Concrete methods

protected def currentValue: A
def getValue(): A
protected def invalidate(o: Observable): Unit

Inherited methods

def addListener(listener: ChangeListener[_ >: A]): Unit

Attributes

Inherited from:
ValImpl
def addListener(listener: InvalidationListener): Unit

Attributes

Inherited from:
ObservableImpl
def apply(): A

Attributes

Inherited from:
Val
def apply[A, B](f: LazyVal[A] => A)(implicit applier: Applier[A, LazyVal[A], B]): B

Attributes

Inherited from:
Observable
def as[B](implicit f: A => B): Func[B]

Attributes

Inherited from:
Val
def atomic[U](proc: => U): Unit

Attributes

Inherited from:
FirableVal
def delay(millis: Long): DelayedVal[A]

Attributes

Inherited from:
Val
def filter(p: A => Boolean): Func[Option[A]]

Attributes

Inherited from:
Val
def fire(): Unit

Attributes

Inherited from:
FirableVal
def flatten[B](implicit ev: A <:< ObservableValue[B]): Val[B]

Attributes

Inherited from:
Val
def map[B](f: A => B): Func[B]

Attributes

Inherited from:
Val
def observe[U](f: => U): InvalidationObserver[U]

Attributes

Inherited from:
Observable
def observeOnce[U](f: => U): Observer

Attributes

Inherited from:
Observable
def on[U](value: A)(f: => U): ChangeObserver[A, Unit]

Attributes

Inherited from:
Val
def onChange[U](f: (ObservableValue[_ <: A], A, A) => U): ChangeObserver[A, U]

Attributes

Inherited from:
Val
def onChangeOnce[U](f: (ObservableValue[_ <: A], A, A) => U): Observer

Attributes

Inherited from:
Val
def onInvalidate[U](f: Observable => U): InvalidationObserver[U]

Attributes

Inherited from:
Observable
def onInvalidateOnce[U](f: Observable => U): Observer

Attributes

Inherited from:
Observable
def onOnce[U](value: A)(f: => U): Observer

Attributes

Inherited from:
Val
def onValue[U](f: A => U): ChangeObserver[A, U]

Attributes

Inherited from:
Val
def onValueOnce[U](f: A => U): Observer

Attributes

Inherited from:
Val
def removeListener(listener: ChangeListener[_ >: A]): Unit

Attributes

Inherited from:
ValImpl
def removeListener(listener: InvalidationListener): Unit

Attributes

Inherited from:
ObservableImpl
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns:

a string representation of the object.

Definition Classes
Val -> Any
Inherited from:
Val

Concrete fields

lazy protected val lazyListener: InvalidationListener
protected var valid: Boolean
protected var value: A

Inherited fields

lazy protected val changeListeners: ListBuffer[ChangeListener[_ >: A]]

Attributes

Inherited from:
ValImpl
lazy protected val invalidationListeners: ListBuffer[InvalidationListener]

Attributes

Inherited from:
ObservableImpl