Class

diode

ZoomModelRW

Related Doc: package diode

Permalink

class ZoomModelRW[M, S] extends ZoomModelR[M, S] with BaseModelRW[M, S]

Model reader/writer for a zoomed value

Linear Supertypes
BaseModelRW[M, S], ModelRW[M, S], ZoomModelR[M, S], BaseModelR[M, S], ModelR[M, S], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. ZoomModelRW
  2. BaseModelRW
  3. ModelRW
  4. ZoomModelR
  5. BaseModelR
  6. ModelR
  7. AnyRef
  8. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ZoomModelRW(root: ModelR[M, M], get: (M) ⇒ S, set: (M, S) ⇒ M)(implicit feq: FastEq[_ >: S])

    Permalink

Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def =!=(that: S): Boolean

    Permalink
    Definition Classes
    ModelR
  4. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  5. def ===(that: S): Boolean

    Permalink

    Checks if that is equal to this using an appropriate equality check

    Checks if that is equal to this using an appropriate equality check

    that

    Value to compare with

    Definition Classes
    ZoomModelRModelR
  6. def apply(): S

    Permalink

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    ModelR
  7. final def asInstanceOf[T0]: T0

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. def eval(model: M): S

    Permalink

    Evaluates the reader against a supplied model

    Evaluates the reader against a supplied model

    Definition Classes
    BaseModelRModelR
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flatMap[F[_], A, B](f: (A) ⇒ F[B])(implicit ev: =:=[S, F[A]], monad: Monad[F], feq: FastEq[_ >: B]): ModelR[M, F[B]]

    Permalink

    FlatMaps over current reader into a new value provided by f.

    FlatMaps over current reader into a new value provided by f. Reader type S must be of type F[A], for example Option[A].

    f

    The function to apply, must return a value of type F[B]

    Definition Classes
    ModelR
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def getF(model: M): S

    Permalink
    Attributes
    protected
    Definition Classes
    ZoomModelRBaseModelR
  16. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  18. def map[F[_], A, B](f: (A) ⇒ B)(implicit ev: =:=[S, F[A]], monad: Monad[F], feq: FastEq[_ >: B]): ModelR[M, F[B]]

    Permalink

    Maps over current reader into a new value provided by f.

    Maps over current reader into a new value provided by f. Reader type S must be of type F[A], for example Option[A].

    f

    The function to apply

    Definition Classes
    ModelR
  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. val root: ModelR[M, M]

    Permalink
    Attributes
    protected
    Definition Classes
    ZoomModelRBaseModelR
  23. def setF(model: M, value: S): M

    Permalink
    Attributes
    protected
    Definition Classes
    ZoomModelRWBaseModelRW
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  26. def updated(newValue: S): M

    Permalink

    Updatews the model using the value provided and returns the updated model.

    Updatews the model using the value provided and returns the updated model.

    Definition Classes
    BaseModelRWModelRW
  27. def value: S

    Permalink

    Returns the value of the reader

    Returns the value of the reader

    Definition Classes
    BaseModelRModelR
  28. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def zip[SS](that: ModelR[M, SS])(implicit feqS: FastEq[_ >: S], feqSS: FastEq[_ >: SS]): ZipModelR[M, S, SS]

    Permalink

    Combines this reader with another reader to provide a new reader returning a tuple of the values of the two original readers.

    Combines this reader with another reader to provide a new reader returning a tuple of the values of the two original readers.

    that

    The other reader

    Definition Classes
    BaseModelRModelR
  32. def zoom[T](get: (S) ⇒ T)(implicit feq: FastEq[_ >: T]): ZoomModelR[M, T]

    Permalink

    Zooms into the model using the provided accessor function

    Zooms into the model using the provided accessor function

    get

    Function to go from current reader to a new value

    Definition Classes
    BaseModelRModelR
  33. def zoomFlatMap[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ F[B])(implicit monad: Monad[F], feq: FastEq[_ >: B]): ModelR[M, F[B]]

    Permalink

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A]

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A]

    fa

    Zooming function

    f

    The function to apply, must return a value of type F[B]

    Definition Classes
    BaseModelRModelR
  34. def zoomFlatMapRW[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ F[B])(set: (S, F[B]) ⇒ S)(implicit monad: Monad[F], feq: FastEq[_ >: B]): FlatMapModelRW[F, M, A, B]

    Permalink

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A].

    Zooms into the model and flatMaps over the zoomed value, which must be of type F[A]. The set function is used to update the model with a new value.

    fa

    Zooming function

    f

    The function to apply

    set

    Function to update the model with a new value

    Definition Classes
    BaseModelRWModelRW
  35. def zoomMap[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ B)(implicit monad: Monad[F], feq: FastEq[_ >: B]): ModelR[M, F[B]]

    Permalink

    Zooms into the model and maps over the zoomed value, which must be of type F[A]

    Zooms into the model and maps over the zoomed value, which must be of type F[A]

    fa

    Zooming function

    f

    The function to apply

    Definition Classes
    BaseModelRModelR
  36. def zoomMapRW[F[_], A, B](fa: (S) ⇒ F[A])(f: (A) ⇒ B)(set: (S, F[B]) ⇒ S)(implicit monad: Monad[F], feq: FastEq[_ >: B]): MapModelRW[F, M, A, B]

    Permalink

    Zooms into the model and maps over the zoomed value, which must be of type F[A].

    Zooms into the model and maps over the zoomed value, which must be of type F[A]. The set function is used to update the model with a new value.

    fa

    Zooming function

    f

    The function to apply

    set

    Function to update the model with a new value

    Definition Classes
    BaseModelRWModelRW
  37. def zoomRW[U](get: (S) ⇒ U)(set: (S, U) ⇒ S)(implicit feq: FastEq[_ >: U]): ZoomModelRW[M, U]

    Permalink

    Zooms into the model using the provided get function.

    Zooms into the model using the provided get function. The set function is used to update the model with a new value.

    get

    Function to go from current reader to a new value

    set

    Function to update the model with a new value

    Definition Classes
    BaseModelRWModelRW

Inherited from BaseModelRW[M, S]

Inherited from ModelRW[M, S]

Inherited from ZoomModelR[M, S]

Inherited from BaseModelR[M, S]

Inherited from ModelR[M, S]

Inherited from AnyRef

Inherited from Any

Ungrouped