Class Either<L,R>

java.lang.Object
net.md_5.bungee.protocol.Either<L,R>

public final class Either<L,R> extends Object
  • Constructor Details

    • Either

      public Either()
  • Method Details

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