Class These._B<A,B>

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

private static final class These._B<A,B> extends These<A,B>
  • 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 Tuple2<A,B>, ? 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