sealed trait Pulse[+P] extends AnyRef

Pulse that stores a current value and can also indicate a potentially change to an updated value. A pulse may indicate that no current value has been set yet but updates must always contain a value.

P

Stored value type of the Pulse

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Pulse
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def collect[U](pf: PartialFunction[P, U]): Pulse[U]
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def filter(p: (P) => Boolean): Pulse[P]

    If the pulse indicates a change: Applies a filter function to the updated value of the pulse.

    If the pulse indicates a change: Applies a filter function to the updated value of the pulse. Based on the filter function, the updated value is retained or an empty pulse is returned. If the pulse doesn't indicate a change: Returns an empty pulse indicating no change.

    p

    Filter function to be applied to the updated pulse value

    returns

    A pulse with the updated pulse value if the filter function returns true, an empty pulse otherwise

  10. def flatMap[Q](f: (P) => Pulse[Q]): Pulse[Q]

    If the pulse indicates a change: Applies a function to the updated value.

    If the pulse indicates a change: Applies a function to the updated value. The function has to return a new pulse that is returned by this function. If the pulse doesn't indicate a change: Returns an empty pulse indicating no change.

    Q

    Value type of the pulse returned by the applied function

    f

    Function to be applied on the updated pulse value

    returns

    Pulse returned by the applied function or an empty pulse if there is no updated value

  11. def get: P
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. def getOrElse[U >: P](default: U): U
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. final def isChange: Boolean

    Checks if the pulse indicates a change

    Checks if the pulse indicates a change

    returns

    True if the pulse indicates a change, false if not

  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. def map[Q](f: (P) => Q): Pulse[Q]

    If the pulse indicates a change: Applies a function to the updated value of the pulse and returns a new pulse indicating a change to this updated value.

    If the pulse indicates a change: Applies a function to the updated value of the pulse and returns a new pulse indicating a change to this updated value. If the pulse doesn't indicate a change: Returns an empty pulse indicating no change.

    Q

    Result type of the applied function

    f

    Function to be applied on the updated pulse value

    returns

    Pulse indicating the update performed by the applied function or an empty pulse if there is no updated value

  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toOption: Option[P]
  23. def toOptionTry: Option[Try[P]]

    converts the pulse to an option of try

  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped