Class Either.Left<A,​B>

  • Type Parameters:
    A - The type of Lefts.
    B - The type of Rights.
    Enclosing class:
    Either<A,​B>

    public static final class Either.Left<A,​B>
    extends Either<A,​B>
    • Constructor Summary

      Constructors 
      Constructor Description
      Left​(A a)
      Construct a left.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T accept​(EitherVisitor<A,​B,​T> visitor)
      How you go about accessing the values.
      int hashCode()  
      java.lang.String toString()  
      • Methods inherited from class org.intermine.webservice.server.core.Either

        equals
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Left

        public Left​(A a)
        Construct a left.
        Parameters:
        a - The content of this Either.
    • Method Detail

      • hashCode

        public int hashCode()
        Specified by:
        hashCode in class Either<A,​B>
      • accept

        public <T> T accept​(EitherVisitor<A,​B,​T> visitor)
        Description copied from class: Either
        How you go about accessing the values.
        Specified by:
        accept in class Either<A,​B>
        Type Parameters:
        T - The return type.
        Parameters:
        visitor - The mapping function.
        Returns:
        Whatever the mapping function returns.
      • toString

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