Class Either<A,​B>


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

      • left

        public abstract A left()
      • right

        public abstract B right()
      • left

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

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

        public final <C> C map​(Function<? super A,​? extends C> left,
                               Function<? super B,​? extends C> right)