Constant

com.thoughtworks.binding.Binding$.Constant
final case class Constant[+A](value: A) extends Binding[A]

A data binding expression that never changes.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Binding[A]
trait Watchable[A]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Inherited methods

final def flatMap[B](f: A => Binding[B]): Binding[B]

Attributes

Inherited from:
Binding
final def map[B](f: A => B): Binding[B]

Attributes

Inherited from:
Binding

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
final def unwatch(): Unit

Disable automatic recalculation.

Disable automatic recalculation.

Attributes

Note:

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

Inherited from:
Binding
final def watch(): Unit

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.

Attributes

Note:

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

Inherited from:
Binding