FlatMap

com.thoughtworks.binding.Binding$.FlatMap
final class FlatMap[A, B](upstream: Binding[A], f: A => Binding[B]) extends Binding[B] with ChangedListener[B]

Attributes

Source:
Binding.scala
Graph
Supertypes
trait Binding[B]
trait Watchable[B]
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def addChangedListener(listener: ChangedListener[B]): Unit

Attributes

Definition Classes
Source:
Binding.scala
override def changed(upstreamEvent: ChangedEvent[B]): Unit

Attributes

Definition Classes
Source:
Binding.scala

Inherited methods

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

Attributes

Inherited from:
Binding
Source:
Binding.scala
final def map[B](f: B => B): Binding[B]

Attributes

Inherited from:
Binding
Source:
Binding.scala
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
Source:
Binding.scala
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
Source:
Binding.scala