Class Either<L,​R>


  • public final class Either<L,​R>
    extends Object
    • Method Detail

      • isLeft

        public boolean isLeft()
      • isRight

        public boolean isRight()
      • left

        public static <L,​R> Either<L,​R> left​(L left)
      • right

        public static <L,​R> Either<L,​R> right​(R right)
      • getLeftOrCompute

        public L getLeftOrCompute​(Function<R,​L> function)
      • getRightOrCompute

        public R getRightOrCompute​(Function<L,​R> function)
      • getLeft

        public L getLeft()
      • getRight

        public R getRight()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object