Class Choice3._B<A,B,C>

java.lang.Object
com.jnape.palatable.lambda.adt.choice.Choice3<A,B,C>
com.jnape.palatable.lambda.adt.choice.Choice3._B<A,B,C>
All Implemented Interfaces:
CoProduct3<A,B,C,Choice3<A,B,C>>, Applicative<C,Choice3<A,B,?>>, Bifunctor<B,C,Choice3<A,?,?>>, BoundedBifunctor<B,C,Object,Object,Choice3<A,?,?>>, Functor<C,Choice3<A,B,?>>, Monad<C,Choice3<A,B,?>>, MonadRec<C,Choice3<A,B,?>>, Traversable<C,Choice3<A,B,?>>
Enclosing class:
Choice3<A,B,C>

private static final class Choice3._B<A,B,C> extends Choice3<A,B,C>
  • Field Details

    • b

      private final B b
  • Constructor Details

    • _B

      private _B(B b)
  • Method Details

    • match

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

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object