Package fj.data

Class Eval.Always<A>

  • Enclosing class:
    Eval<A>

    private static final class Eval.Always<A>
    extends Eval<A>
    Represents a lazy computation that is evaluated every time when it's requested.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private F0<A> supplier  
    • Constructor Summary

      Constructors 
      Constructor Description
      Always​(F0<A> supplier)  
    • Field Detail

      • supplier

        private final F0<A> supplier
    • Constructor Detail

      • Always

        Always​(F0<A> supplier)
    • Method Detail

      • value

        public final A value()
        Description copied from class: Eval
        Evaluates the computation and return its result. Depending on whether the current instance is lazy or eager the computation may or may not happen at this point.
        Specified by:
        value in class Eval<A>
        Returns:
        a result of this computation.