monocle

PSetter

Related Docs: object PSetter | package monocle

final class PSetter[S, T, A, B] extends AnyRef

A PSetter is a generalisation of Functor map: map: (A => B) => F[A] => F[B] modify: (A => B) => S => T

PSetter stands for Polymorphic Setter as it set and modify methods change a type A to B and S to T. Setter is a type alias for PSetter restricted to monomoprhic updates:

type Setter[S, A] = PSetter[S, S, A, A]

PTraversal, POptional, PPrism, PLens and PIso are valid PSetter

S

the source of a PSetter

T

the modified source of a PSetter

A

the target of a PSetter

B

the modified target of a PSetter

See also

SetterLaws in monocle-law module

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PSetter
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

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. def ^<->[C, D](other: PIso[A, B, C, D]): PSetter[S, T, C, D]

    alias to composeIso

    alias to composeIso

    Annotations
    @inline()
  5. def ^<-?[C, D](other: PPrism[A, B, C, D]): PSetter[S, T, C, D]

    alias to composePrism

    alias to composePrism

    Annotations
    @inline()
  6. def ^|->[C, D](other: PLens[A, B, C, D]): PSetter[S, T, C, D]

    alias to composeLens

    alias to composeLens

    Annotations
    @inline()
  7. def ^|->>[C, D](other: PTraversal[A, B, C, D]): PSetter[S, T, C, D]

    alias to composeTraversal

    alias to composeTraversal

    Annotations
    @inline()
  8. def ^|-?[C, D](other: POptional[A, B, C, D]): PSetter[S, T, C, D]

    alias to composeOptional

    alias to composeOptional

    Annotations
    @inline()
  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def composeIso[C, D](other: PIso[A, B, C, D]): PSetter[S, T, C, D]

    compose a PSetter with a PIso

    compose a PSetter with a PIso

    Annotations
    @inline()
  12. def composeLens[C, D](other: PLens[A, B, C, D]): PSetter[S, T, C, D]

    compose a PSetter with a PLens

    compose a PSetter with a PLens

    Annotations
    @inline()
  13. def composeOptional[C, D](other: POptional[A, B, C, D]): PSetter[S, T, C, D]

    compose a PSetter with a POptional

    compose a PSetter with a POptional

    Annotations
    @inline()
  14. def composePrism[C, D](other: PPrism[A, B, C, D]): PSetter[S, T, C, D]

    compose a PSetter with a PPrism

    compose a PSetter with a PPrism

    Annotations
    @inline()
  15. def composeSetter[C, D](other: PSetter[A, B, C, D]): PSetter[S, T, C, D]

    compose a PSetter with a PSetter

    compose a PSetter with a PSetter

    Annotations
    @inline()
  16. def composeTraversal[C, D](other: PTraversal[A, B, C, D]): PSetter[S, T, C, D]

    compose a PSetter with a PTraversal

    compose a PSetter with a PTraversal

    Annotations
    @inline()
  17. final def eq(arg0: AnyRef): Boolean

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

    Definition Classes
    AnyRef → Any
  19. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  20. final def getClass(): Class[_]

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

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

    Definition Classes
    Any
  23. val modify: ((A) ⇒ B) ⇒ (S) ⇒ T

    modify polymorphically the target of a PSetter with a function

  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  27. def set(b: B): (S) ⇒ T

    set polymorphically the target of a PSetter with a value

    set polymorphically the target of a PSetter with a value

    Annotations
    @inline()
  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  29. def toString(): String

    Definition Classes
    AnyRef → Any
  30. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped