Class Either<A,​B>


  • public abstract class Either<A,​B>
    extends Object
    • Method Detail

      • 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)
      • isLeft

        public boolean isLeft()
      • isRight

        public boolean isRight()