Class Eithers.Right<A,​B>

  • Enclosing class:
    Eithers

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

      Fields 
      Modifier and Type Field Description
      private B right  
    • Constructor Summary

      Constructors 
      Constructor Description
      Right​(B right)  
    • 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

      • right

        private final B right
    • Constructor Detail

      • Right

        Right​(B right)
    • 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>