Class Either.Left<L,​R>

    • Field Detail

      • l

        private final L l
    • Constructor Detail

      • Left

        private Left​(L l)
    • Method Detail

      • match

        public <V> V match​(Fn1<? super L,​? extends V> leftFn,
                           Fn1<? super R,​? extends V> rightFn)
        Description copied from class: Either
        Given two mapping functions (one from an L to a V, one from an R to a V), unwrap the value stored in this Either, apply the appropriate mapping function, and return the result.
        Specified by:
        match in interface CoProduct2<L,​R,​Either<L,​R>>
        Specified by:
        match in class Either<L,​R>
        Type Parameters:
        V - the result type
        Parameters:
        leftFn - the left value mapping function
        rightFn - the right value mapping function
        Returns:
        the result of applying the appropriate mapping function to the wrapped value
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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