Package net.md_5.bungee.protocol.util

# Class Either<L,R>

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

public final class Either<L,R> extends Object

- ## Method Summary

  Modifier and Type
  Method
  Description
  `boolean`
  `equals(Object o)`
  `L`
  `getLeft()`
  `L`
  `getLeftOrCompute(Function<R,L> function)`
  `R`
  `getRight()`
  `R`
  `getRightOrCompute(Function<L,R> function)`
  `int`
  `hashCode()`
  `boolean`
  `isLeft()`
  `boolean`
  `isRight()`
  `static <L, R> Either<L,R>`
  `left(L left)`
  `static <L, R> Either<L,R>`
  `right(R right)`
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

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

  - ### 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`