Class MaybePrism

java.lang.Object
com.jnape.palatable.lambda.optics.prisms.MaybePrism

public final class MaybePrism extends Object
  • Constructor Details

    • MaybePrism

      private MaybePrism()
  • Method Details

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