Package fj.data

Class Eval.Now<A>

  • Enclosing class:
    Eval<A>

    private static final class Eval.Now<A>
    extends Eval<A>
    Represents an eager computation.
    • Field Summary

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

      Constructors 
      Constructor Description
      Now​(A a)  
    • Field Detail

      • a

        private final A a
    • Constructor Detail

      • Now

        Now​(A a)
    • 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.