Class PairOptics


  • public final class PairOptics
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private PairOptics()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <A,​B>
      Lens<Pair<A,​B>,​B>
      _right()  
      static <A,​B>
      Lens<Pair<A,​B>,​A>
      left()  
      static <A,​B>
      Iso<Pair<A,​B>,​java.util.Map.Entry<A,​B>>
      pairToEntry()  
      static <A,​B,​C>
      PLens<Pair<A,​B>,​Pair<C,​B>,​A,​C>
      pLeft()  
      static <A,​B,​C>
      PLens<Pair<A,​B>,​Pair<A,​C>,​B,​C>
      pRight()  
      • Methods inherited from class java.lang.Object

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

      • PairOptics

        private PairOptics()
    • Method Detail

      • pLeft

        public static <A,​B,​C> PLens<Pair<A,​B>,​Pair<C,​B>,​A,​C> pLeft()
      • left

        public static <A,​B> Lens<Pair<A,​B>,​A> left()
      • pRight

        public static <A,​B,​C> PLens<Pair<A,​B>,​Pair<A,​C>,​B,​C> pRight()
      • _right

        public static <A,​B> Lens<Pair<A,​B>,​B> _right()
      • pairToEntry

        public static <A,​B> Iso<Pair<A,​B>,​java.util.Map.Entry<A,​B>> pairToEntry()