Class MaybePrism


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

      Constructors 
      Modifier Constructor Description
      private MaybePrism()  
    • Constructor Detail

      • MaybePrism

        private MaybePrism()
    • Method Detail

      • _just

        public static <A,​B> Prism<Maybe<A>,​Maybe<B>,​A,​B> _just()
        A Prism that focuses on present values in a Maybe.
        Type Parameters:
        A - Maybe the input value
        B - Maybe the output value
        Returns:
        the Prism
      • _nothing

        public static <A> Prism.Simple<Maybe<A>,​Unit> _nothing()
        A Prism that focuses on absent values in a Maybe, for symmetry.
        Type Parameters:
        A - Maybe the input and output value
        Returns:
        the Prism