com.thoughtworks.binding

Members list

Type members

Classlikes

object Binding extends Companion

Attributes

Authors:

杨博 (Yang Bo) <[email protected]>

Companion
trait
Source
Binding.scala
Supertypes
trait Companion
class Object
trait Matchable
class Any
Self type
Binding.type
trait Binding[+A] extends Watchable[A]

A data binding expression that represents a value that automatically recalculates when its dependencies change.

A data binding expression that represents a value that automatically recalculates when its dependencies change.

Attributes

Authors:

杨博 (Yang Bo) <[email protected]>

Example

You may create a data binding expression via Binding { ??? } block annotation.

         val bindingInt: Binding[Int] = Binding { 100 }

A data binding expression may depend on other binding expressions via bind method:

         val bindingString: Binding[String] = Binding { bindingInt.bind.toString }
Companion
object
Source
Binding.scala
Supertypes
trait Watchable[A]
class Object
trait Matchable
class Any
Known subtypes
class FlatMap[A, B]
class Map[A, B]
trait Stable[A]
class Constant[A]
class Var[A]
final class SafeBuffer[A] extends Buffer[A]

Similar to scala.collection.mutable.ArrayBuffer, except that this SafeBuffer allows adding or removing elements via += and -= inside a foreachNonHole() } }">foreach block.

Similar to scala.collection.mutable.ArrayBuffer, except that this SafeBuffer allows adding or removing elements via += and -= inside a foreachNonHole() } }">foreach block.

Attributes

Note

A java.lang.IllegalStateException will be thrown when invoking methods other than += and -= in a foreachNonHole() } }">foreach block.

Source
SafeBuffer.scala
Supertypes
trait Buffer[A]
trait Shrinkable[A]
trait Growable[A]
trait Clearable
trait Seq[A]
trait SeqOps[A, Buffer, Buffer[A]]
trait Cloneable[Buffer[A]]
trait Cloneable
trait Seq[A]
trait Equals
trait SeqOps[A, Buffer, Buffer[A]]
trait PartialFunction[Int, A]
trait Int => A
trait Iterable[A]
trait Iterable[A]
trait IterableOps[A, Buffer, Buffer[A]]
trait IterableOnceOps[A, Buffer, Buffer[A]]
trait IterableOnce[A]
class Object
trait Matchable
class Any
Show all