Package fj

Class P2.Optic

java.lang.Object
fj.P2.Optic
Enclosing class:
P2<A,B>

public static final class P2.Optic extends Object
Optic factory methods for a P2
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <A, B> Lens<P2<A,B>,A>
    _1()
    Monomorphic lens targeted on _1.
    static <A, B, C> PLens<P2<A,B>,P2<C,B>,A,C>
    _1p()
    Polyomorphic lens targeted on _1.
    static <A, B> Lens<P2<A,B>,B>
    _2()
    Monomorphic lens targeted on _1.
    static <A, B, C> PLens<P2<A,B>,P2<A,C>,B,C>
    _2p()
    Polyomorphic lens targeted on _2.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Optic

      private Optic()
  • Method Details

    • _1p

      public static <A, B, C> PLens<P2<A,B>,P2<C,B>,A,C> _1p()
      Polyomorphic lens targeted on _1.
    • _1

      public static <A, B> Lens<P2<A,B>,A> _1()
      Monomorphic lens targeted on _1.
    • _2p

      public static <A, B, C> PLens<P2<A,B>,P2<A,C>,B,C> _2p()
      Polyomorphic lens targeted on _2.
    • _2

      public static <A, B> Lens<P2<A,B>,B> _2()
      Monomorphic lens targeted on _1.