Interface Either<X,Y>

All Known Implementing Classes:
EitherImpl

public interface Either<X,Y>
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    boolean
     
     
    static <X, Y> Either<X,Y>
    left(X left)
     
     
    static <X, Y> Either<X,Y>
    right(Y right)
     
  • Method Details

    • left

      static <X, Y> Either<X,Y> left(X left)
    • right

      static <X, Y> Either<X,Y> right(Y right)
    • isLeft

      boolean isLeft()
    • isRight

      boolean isRight()
    • left

      X left()
    • right

      Y right()