Class

com.twitter.util

AbstractVar

Related Doc: package util

Permalink

abstract class AbstractVar[T] extends Var[T]

Abstract Var class for Java compatibility.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. AbstractVar
  2. Var
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new AbstractVar()

    Permalink

Abstract Value Members

  1. abstract def observe(depth: Int, obs: Observer[T]): Closable

    Permalink

    Concrete implementations of Var implement observe.

    Concrete implementations of Var implement observe. This is called for each toplevel observe. Depths indicate the relative structural depth of the observation, from the frame of reference of the root call to observe. (Each Var derived via flatMap increases the depth.) Depths are used to order the invocation of update callbacks. This is used to ensure that updates proceed in topological order so that every input variable is fully resolved before recomputing a derived variable.

    Attributes
    protected
    Definition Classes
    Var

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. lazy val changes: Event[T]

    Permalink

    An Event where changes in Var are emitted.

    An Event where changes in Var are emitted. The current value of this Var is emitted synchronously upon subscription.

    All changes to this Var are guaranteed to be published to the Event.

    Definition Classes
    Var
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def diff[CC[_], U](implicit arg0: Diffable[CC], toCC: <:<[T, CC[U]]): Event[Diff[CC, U]]

    Permalink

    Produce an Event reflecting the differences between each update to this Var.

    Produce an Event reflecting the differences between each update to this Var.

    Definition Classes
    Var
  8. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. def flatMap[U](f: (T) ⇒ Var[U]): Var[U]

    Permalink

    Create a dependent Var which behaves as f applied to the current value of this Var.

    Create a dependent Var which behaves as f applied to the current value of this Var. FlatMap manages a dynamic dependency graph: the dependent Var is detached and recomputed whenever the outer Var changes, but only if there are any observers. An unobserved Var returned by flatMap will not invoke f

    Definition Classes
    Var
  12. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  13. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. def join[U](other: Var[U]): Var[(T, U)]

    Permalink
    Definition Classes
    Var
  16. def map[U](f: (T) ⇒ U): Var[U]

    Permalink

    Create a derived variable by applying f to the contained value.

    Create a derived variable by applying f to the contained value.

    Definition Classes
    Var
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  20. def sample(): T

    Permalink
    Definition Classes
    Var
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Var[T]

Inherited from AnyRef

Inherited from Any

Ungrouped