Class Either.Right<L,​R>

  • Type Parameters:
    L - the left type
    R - the right type
    Enclosing class:
    Either<L,​R>

    public static final class Either.Right<L,​R>
    extends Either<L,​R>
    A right projected Either.
    • Method Detail

      • getValue

        public R getValue()
        Returns the wrapped value.
        Returns:
        the wrapped value.
      • isLeft

        public boolean isLeft()
        Description copied from class: Either
        Check whether this is a Left projection.
        Specified by:
        isLeft in class Either<L,​R>
        Returns:
        true if this is a Reft projection
      • isRight

        public boolean isRight()
        Description copied from class: Either
        Check whether this is a Right projection.
        Specified by:
        isRight in class Either<L,​R>
        Returns:
        true if this is a Right projection
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Specified by:
        equals in class Either<L,​R>
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class Either<L,​R>