Class Eithers.Left<A,​B>

  • Enclosing class:
    Eithers

    private static final class Eithers.Left<A,​B>
    extends Either<A,​B>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private A left  
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) <X> X fold​(java.util.function.Function<A,​X> left, java.util.function.Function<B,​X> right)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • left

        private final A left
    • Constructor Detail

      • Left

        Left​(A left)
    • Method Detail

      • fold

        <X> X fold​(java.util.function.Function<A,​X> left,
                   java.util.function.Function<B,​X> right)
        Specified by:
        fold in class Either<A,​B>