Reaction

trait Reaction[T] extends Ordered[Reaction[T]]

Reaction may be considered similar to Observer or Listener in other libraries. A Reaction may be added to a Reactive in order to react when a value is fired upon it.

Reaction may be considered similar to Observer or Listener in other libraries. A Reaction may be added to a Reactive in order to react when a value is fired upon it.

Type Params
T

the type received by this Reaction

Companion
object
trait Ordered[Reaction[T]]
trait Comparable[Reaction[T]]
class Object
trait Matchable
class Any

Value members

Abstract methods

def apply(value: T, previous: Option[T]): ReactionStatus

Invoked when a new value is received by the associated Reactive

Invoked when a new value is received by the associated Reactive

Value Params
previous

the previous value, if one was defined

value

the new value

Concrete methods

override def compare(that: Reaction[T]): Int
Definition Classes
Ordered
def priority: Double

Priority of this Reaction in contrast to other Reactions attached to the same Reactive. A higher value represents a higher position in reactions list. See Priority for pre-defined values.

Priority of this Reaction in contrast to other Reactions attached to the same Reactive. A higher value represents a higher position in reactions list. See Priority for pre-defined values.

Inherited methods

def <(that: Reaction[T]): Boolean
Inherited from
Ordered
def <=(that: Reaction[T]): Boolean
Inherited from
Ordered
def >(that: Reaction[T]): Boolean
Inherited from
Ordered
def >=(that: Reaction[T]): Boolean
Inherited from
Ordered
def compareTo(that: Reaction[T]): Int
Inherited from
Ordered