Class LoadDouble

  • All Implemented Interfaces:
    java.util.function.LongToDoubleFunction

    public class LoadDouble
    extends java.lang.Object
    implements java.util.function.LongToDoubleFunction
    Load a value from a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. If the named variable is not defined, then the default value is returned.
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadDouble​(java.lang.String name)  
      LoadDouble​(java.lang.String name, double defaultValue)  
      LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc)  
      LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc, double defaultValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double applyAsDouble​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LoadDouble

        public LoadDouble​(java.lang.String name)
      • LoadDouble

        public LoadDouble​(java.lang.String name,
                          double defaultValue)
      • LoadDouble

        public LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc)
      • LoadDouble

        public LoadDouble​(java.util.function.LongFunction<java.lang.Object> nameFunc,
                          double defaultValue)
    • Method Detail

      • applyAsDouble

        public double applyAsDouble​(long value)
        Specified by:
        applyAsDouble in interface java.util.function.LongToDoubleFunction