Class NullaryDoubleSupplier

  • All Implemented Interfaces:
    DoubleSupplier, Supplier<Double>, org.ojalgo.function.BasicFunction, org.ojalgo.function.NullaryFunction<Double>

    public class NullaryDoubleSupplier
    extends Object
    implements org.ojalgo.function.NullaryFunction<Double>
    Lightweight Nullaryfunction implementation to supply doubles in the form of a NullaryFunction<Double> compatible with OjAlgo
    Author:
    markr
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.ojalgo.function.BasicFunction

        org.ojalgo.function.BasicFunction.Differentiable<N extends Number,​F extends org.ojalgo.function.BasicFunction>, org.ojalgo.function.BasicFunction.Integratable<N extends Number,​F extends org.ojalgo.function.BasicFunction>, org.ojalgo.function.BasicFunction.PlainUnary<T extends Object,​R extends Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static NullaryDoubleSupplier ONE
      Create supplier that delivers 1 value
    • Constructor Summary

      Constructors 
      Constructor Description
      NullaryDoubleSupplier​(double theDouble)
      Constructor for double supplier compatible with Nullaryfunction<Double> of OjAlgo
    • Constructor Detail

      • NullaryDoubleSupplier

        public NullaryDoubleSupplier​(double theDouble)
        Constructor for double supplier compatible with Nullaryfunction<Double> of OjAlgo
        Parameters:
        theDouble - to supply
    • Method Detail

      • doubleValue

        public double doubleValue()
        Specified by:
        doubleValue in interface org.ojalgo.function.NullaryFunction<Double>
      • invoke

        public Double invoke()
        Specified by:
        invoke in interface org.ojalgo.function.NullaryFunction<Double>