Class Either<L,R>

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

public final class Either<L,R> extends Object
  • 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)
    • getLeft

      public L getLeft()
    • getRight

      public R getRight()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object