Class Maybe.Nothing<A>

    • Constructor Detail

      • Nothing

        private Nothing()
    • Method Detail

      • match

        public <R> R match​(Fn1<? super Unit,​? extends R> aFn,
                           Fn1<? super A,​? extends R> bFn)
        Description copied from interface: CoProduct2
        Type-safe convergence requiring a match against all potential types.
        Type Parameters:
        R - result type
        Parameters:
        aFn - morphism A -> R
        bFn - morphism B -> R
        Returns:
        the result of applying the appropriate morphism to this coproduct's unwrapped value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object