Class

japgolly.scalajs.react.extra.Px

Map

Related Doc: package Px

Permalink

final class Map[A, B] extends DerivativeBase[A, B, B]

A value B dependent on the value of some Px[A].

Linear Supertypes
DerivativeBase[A, B, B], Derivative[B], Px[B], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Map
  2. DerivativeBase
  3. Derivative
  4. Px
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Map(xa: Px[A], f: (A) ⇒ B)

    Permalink

Type Members

  1. type ValRev = (B, Int)

    Permalink
    Attributes
    protected
    Definition Classes
    DerivativeBase

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def _init(): ValRev

    Permalink
    Attributes
    protected
    Definition Classes
    DerivativeBase
  5. final def _revA(): Int

    Permalink
    Attributes
    protected
    Definition Classes
    DerivativeBase
  6. final def _updateValueIfChanged(): Unit

    Permalink
    Attributes
    protected
    Definition Classes
    DerivativeBase
  7. final def _value(): B

    Permalink
    Attributes
    protected
    Definition Classes
    DerivativeBase
  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. macro def extract: B

    Permalink

    If this Px contains a function, it can be extracted and the Px dropped from the signature.

    If this Px contains a function, it can be extracted and the Px dropped from the signature. Every time the function is invoked it will use the latest value of this Px, even if you don't explicitly hold a reference to it anymore.

    Example. From a Px[Int => String], an Int => String can be extracted.

    Definition Classes
    Px
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def flatMap[C](g: (B) ⇒ Px[C]): FlatMap[A, C]

    Permalink
    Definition Classes
    MapPx
  15. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  16. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  18. def map[C](g: (B) ⇒ C): Map[A, C]

    Permalink
    Definition Classes
    MapPx
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def peek: B

    Permalink

    Get the last used value without updating.

    Get the last used value without updating.

    Definition Classes
    MapPx
  23. def rev: Int

    Permalink

    Revision of its value.

    Revision of its value. Increments when value changes.

    Definition Classes
    MapPx
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. final def toCallback: CallbackTo[B]

    Permalink
    Definition Classes
    Px
  26. def toString(): String

    Permalink
    Definition Classes
    Map → AnyRef → Any
  27. def value(): B

    Permalink

    Get the latest value, updating itself if necessary.

    Get the latest value, updating itself if necessary.

    Definition Classes
    MapPx
  28. final def valueSince(r: Int): Option[B]

    Permalink
    Definition Classes
    Px
  29. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def withReuse(implicit ev: Reusability[B]): Px[B]

    Permalink

    In addition to updating when the underlying Px changes, this will also check its own result and halt updates if reusable.

    In addition to updating when the underlying Px changes, this will also check its own result and halt updates if reusable.

    Definition Classes
    Derivative

Inherited from DerivativeBase[A, B, B]

Inherited from Derivative[B]

Inherited from Px[B]

Inherited from AnyRef

Inherited from Any

Ungrouped