Class Eithers.Lazy<A,​B>

  • Enclosing class:
    Eithers

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

      Constructors 
      Constructor Description
      Lazy​(java.util.function.Supplier<Either<A,​B>> either)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private Either<A,​B> _evaluate()  
      (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

      • expression

        private volatile java.util.function.Supplier<Either<A,​B>> expression
      • evaluation

        private Either<A,​B> evaluation
    • Constructor Detail

      • Lazy

        Lazy​(java.util.function.Supplier<Either<A,​B>> either)
    • Method Detail

      • _evaluate

        private Either<A,​B> _evaluate()
      • 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>