c

monocle.state

StateLensOps

final class StateLensOps[S, T, A, B] extends AnyVal

Linear Supertypes
AnyVal, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. StateLensOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new StateLensOps(lens: PLens[S, T, A, B])

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def assign(b: B): IndexedState[S, T, B]

    set the value viewed through the lens and returns its *new* value

  6. def assign_(b: B): IndexedState[S, T, Unit]

    set the value viewed through the lens and ignores both values

  7. def assigno(b: B): IndexedState[S, T, A]

    set the value viewed through the lens and returns its *old* value

  8. def extract: State[S, A]

    extracts the value viewed through the lens

  9. def extracts[B](f: (A) => B): State[S, B]

    extracts the value viewed through the lens and applies f over it

  10. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def mod(f: (A) => B): IndexedState[S, T, B]

    modify the value viewed through the lens and returns its *new* value

  13. def mod_(f: (A) => B): IndexedState[S, T, Unit]

    modify the value viewed through the lens and ignores both values

  14. def modo(f: (A) => B): IndexedState[S, T, A]

    modify the value viewed through the lens and returns its *old* value

  15. def st: State[S, A]

    alias for toState

  16. def toState: State[S, A]

    transforms a PLens into a State

  17. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped