Package fj

Class P2.Optic

  • Enclosing class:
    P2<A,​B>

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

      Constructors 
      Modifier Constructor Description
      private Optic()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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 Detail

      • Optic

        private Optic()
    • Method Detail

      • _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.