Class/Object

com.thoughtworks.binding.Binding

Constants

Related Docs: object Constants | package Binding

Permalink

final class Constants[+A] extends BindingSeq[A]

An data binding expression of sequence that never changes.

Source
Binding.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Constants
  2. BindingSeq
  3. AnyRef
  4. Any
Implicitly
  1. by AsBinding
  2. by any2stringadd
  3. by StringFormat
  4. by Ensuring
  5. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. final class WithFilter extends AnyRef

    Permalink

    A helper to build complicated comprehension expressions for BindingSeq

    A helper to build complicated comprehension expressions for BindingSeq

    Definition Classes
    BindingSeq

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to any2stringadd[Constants[A]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (Constants[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to ArrowAssoc[Constants[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def addPatchedListener(listener: PatchedListener[A]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ConstantsBindingSeq
    Annotations
    @inline()
  7. final def all: Binding[Seq[A]]

    Permalink

    Returns a new Binding expression of all elements in this BindingSeq.

    Returns a new Binding expression of all elements in this BindingSeq.

    Definition Classes
    BindingSeq
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. final macro def bind: Seq[A]

    Permalink

    Returns the current value of this Binding and marks the current @dom method depend on this Binding.

    Returns the current value of this Binding and marks the current @dom method depend on this Binding.

    Each time the value changes, in the current @dom method, all code after the current bind expression will be re-evaluated if the current @dom method is watching. However, code in current @dom method and before the current bind expression will not be re-evaluated. The above rule is not applied to DOM nodes created by XHTML literal. A bind expression under a DOM node does not affect siblings and parents of that node.

    Implicit information
    This member is added by an implicit conversion from Constants[A] to AsBinding[A] performed by method AsBinding in com.thoughtworks.binding.Binding.BindingSeq.
    Definition Classes
    Binding
    Note

    This method must be invoked inside a @dom method body or a Binding { ... } block..

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def ensuring(cond: (Constants[A]) ⇒ Boolean, msg: ⇒ Any): Constants[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to Ensuring[Constants[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: (Constants[A]) ⇒ Boolean): Constants[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to Ensuring[Constants[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean, msg: ⇒ Any): Constants[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to Ensuring[Constants[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. def ensuring(cond: Boolean): Constants[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to Ensuring[Constants[A]] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  15. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. macro def flatMap[B](f: (A) ⇒ BindingSeq[B]): BindingSeq[B]

    Permalink

    Returns a BindingSeq that flat-maps each element of this BindingSeq via f

    Returns a BindingSeq that flat-maps each element of this BindingSeq via f

    f

    The mapper function, which may contain magic bind calls.

    Definition Classes
    BindingSeq
  19. final def flatMapBinding[B](f: (A) ⇒ Binding[BindingSeq[B]]): BindingSeq[B]

    Permalink

    The underlying implementation of flatMap.

    The underlying implementation of flatMap.

    Definition Classes
    BindingSeq
    Annotations
    @inline()
    Note

    Don't use this method in user code.

  20. macro def foreach[U](f: (A) ⇒ U): Unit

    Permalink
    Definition Classes
    BindingSeq
  21. def foreachBinding[U](f: (A) ⇒ Binding[U]): Binding[Unit]

    Permalink

    The underlying implementation of foreach.

    The underlying implementation of foreach.

    Definition Classes
    BindingSeq
    Annotations
    @inline()
    Note

    Don't use this method in user code.

  22. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to StringFormat[Constants[A]] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  23. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  25. def isEmpty: Binding[Boolean]

    Permalink
    Definition Classes
    BindingSeq
  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. def length: Binding[Int]

    Permalink
    Definition Classes
    BindingSeq
  28. macro def map[B](f: (A) ⇒ B): BindingSeq[B]

    Permalink

    Returns a BindingSeq that maps each element of this BindingSeq via f

    Returns a BindingSeq that maps each element of this BindingSeq via f

    f

    The mapper function, which may contain magic bind calls.

    Definition Classes
    BindingSeq
  29. final def mapBinding[B](f: (A) ⇒ Binding[B]): BindingSeq[B]

    Permalink

    The underlying implementation of map.

    The underlying implementation of map.

    Definition Classes
    BindingSeq
    Annotations
    @inline()
    Note

    Don't use this method in user code.

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def nonEmpty: Binding[Boolean]

    Permalink
    Definition Classes
    BindingSeq
  32. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  34. def removePatchedListener(listener: PatchedListener[A]): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    ConstantsBindingSeq
    Annotations
    @inline()
  35. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  37. final def unwatch(): Unit

    Permalink

    Disables automatic recalculation.

    Disables automatic recalculation.

    Definition Classes
    BindingSeq
    Annotations
    @inline()
    Note

    This method is recursive, which means that the dependencies of this BindingSeq will be unwatched as well.

  38. def value: Seq[A]

    Permalink

    Returns the current value of this BindingSeq.

    Returns the current value of this BindingSeq.

    Definition Classes
    ConstantsBindingSeq
    Annotations
    @inline()
    Note

    This method must not be invoked inside a @dom method body or a Binding { ... } block..

  39. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def watch(): Unit

    Permalink

    Enables automatic recalculation.

    Enables automatic recalculation.

    You may invoke this method more than once. Then, when you want to disable automatic recalculation, you must invoke unwatch same times as the number of calls to this method.

    Definition Classes
    BindingSeq
    Annotations
    @inline()
    Note

    This method is recursive, which means that the dependencies of this BindingSeq will be watched as well.

  43. macro def withFilter(condition: (A) ⇒ Boolean): WithFilter

    Permalink

    Returns a view of this BindingSeq that applied a filter of condition

    Returns a view of this BindingSeq that applied a filter of condition

    Definition Classes
    BindingSeq
  44. final def withFilterBinding(condition: (A) ⇒ Binding[Boolean]): WithFilter

    Permalink

    The underlying implementation of withFilter.

    The underlying implementation of withFilter.

    Definition Classes
    BindingSeq
    Annotations
    @inline()
    Note

    Don't use this method in user code.

  45. def [B](y: B): (Constants[A], B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to ArrowAssoc[Constants[A]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. final def unwatch(): Unit

    Permalink

    Disable automatic recalculation.

    Disable automatic recalculation.

    Implicit information
    This member is added by an implicit conversion from Constants[A] to AsBinding[A] performed by method AsBinding in com.thoughtworks.binding.Binding.BindingSeq.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (constants: AsBinding[A]).unwatch()
    Definition Classes
    Binding
    Annotations
    @inline()
    Note

    This method is recursive, which means that the dependencies of this Binding will be unwatched as well.

  2. def value: Seq[A]

    Permalink

    Returns the current value of this Binding

    Returns the current value of this Binding

    Implicit information
    This member is added by an implicit conversion from Constants[A] to AsBinding[A] performed by method AsBinding in com.thoughtworks.binding.Binding.BindingSeq.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (constants: AsBinding[A]).value
    Definition Classes
    AsBindingBinding
    Annotations
    @inline()
    Note

    This method must not be invoked inside a @dom method body or a Binding { ... } block..

  3. final def watch(): Unit

    Permalink

    Enable automatic recalculation.

    Enable automatic recalculation.

    You may invoke this method more than once. Then, when you want to disable automatic recalculation, you must invoke unwatch same times as the number of calls to this method.

    Implicit information
    This member is added by an implicit conversion from Constants[A] to AsBinding[A] performed by method AsBinding in com.thoughtworks.binding.Binding.BindingSeq.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (constants: AsBinding[A]).watch()
    Definition Classes
    Binding
    Annotations
    @inline()
    Note

    This method is recursive, which means that the dependencies of this Binding will be watched as well.

Deprecated Value Members

  1. final macro def each: Seq[A]

    Permalink
    Implicit information
    This member is added by an implicit conversion from Constants[A] to AsBinding[A] performed by method AsBinding in com.thoughtworks.binding.Binding.BindingSeq.
    Definition Classes
    Binding
    Annotations
    @deprecated
    Deprecated

    (Since version 7.0.0) Use bind instead

  2. def get: Seq[A]

    Permalink

    Returns the current value of this BindingSeq.

    Returns the current value of this BindingSeq.

    Definition Classes
    ConstantsBindingSeq
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 11.0.0) Use value instead

    Note

    This method is used for internal testing purpose only.

Inherited from BindingSeq[A]

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion AsBinding from Constants[A] to AsBinding[A]

Inherited by implicit conversion any2stringadd from Constants[A] to any2stringadd[Constants[A]]

Inherited by implicit conversion StringFormat from Constants[A] to StringFormat[Constants[A]]

Inherited by implicit conversion Ensuring from Constants[A] to Ensuring[Constants[A]]

Inherited by implicit conversion ArrowAssoc from Constants[A] to ArrowAssoc[Constants[A]]

Ungrouped