trait ModelRO[S] extends AnyRef
A read-only version of ModelR that doesn't know about the root model.
- S
Type of the reader value
- Alphabetic
- By Inheritance
- ModelRO
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
Abstract Value Members
- abstract def ===(that: S): Boolean
Checks if
that
is equal tothis
using an appropriate equality checkChecks if
that
is equal tothis
using an appropriate equality check- that
Value to compare with
- abstract def value: S
Returns the value of the reader
- abstract def zoom[T](get: (S) => T)(implicit feq: FastEq[_ >: T]): NewR[T]
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
- abstract def zoomFlatMap[F[_], A, B](fa: (S) => F[A])(f: (A) => F[B])(implicit monad: Monad[F], feq: FastEq[_ >: B]): NewR[F[B]]
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]
- abstract def zoomMap[F[_], A, B](fa: (S) => F[A])(f: (A) => B)(implicit monad: Monad[F], feq: FastEq[_ >: B]): NewR[F[B]]
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
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- def =!=(that: S): Boolean
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply(): S
Returns the value of the reader
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def flatMap[F[_], A, B](f: (A) => F[B])(implicit ev: =:=[S, F[A]], monad: Monad[F], feq: FastEq[_ >: B]): NewR[F[B]]
FlatMaps over current reader into a new value provided by
f
.FlatMaps over current reader into a new value provided by
f
. Reader typeS
must be of typeF[A]
, for exampleOption[A]
.- f
The function to apply, must return a value of type
F[B]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def map[F[_], A, B](f: (A) => B)(implicit ev: =:=[S, F[A]], monad: Monad[F], feq: FastEq[_ >: B]): NewR[F[B]]
Maps over current reader into a new value provided by
f
.Maps over current reader into a new value provided by
f
. Reader typeS
must be of typeF[A]
, for exampleOption[A]
.- f
The function to apply
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()