Class Either<A,B>

java.lang.Object
org.sejda.commons.Either<A,B>

public abstract class Either<A,B> extends Object
Author:
Andrea Vacondio
See Also:
  • Method Details

    • either

      public abstract <C> C either(Function<? super A,? extends C> left, Function<? super B,? extends C> right)
    • left

      public static <A, B> Either<A,B> left(A value)
    • right

      public static <A, B> Either<A,B> right(B value)
    • fromLeft

      public Optional<A> fromLeft()
    • fromRight

      public Optional<B> fromRight()