Class LoadFloat

  • All Implemented Interfaces:
    java.util.function.LongFunction<java.lang.Float>

    public class LoadFloat
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.Float>
    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
      LoadFloat​(java.lang.String name)  
      LoadFloat​(java.lang.String name, float defaultValue)  
      LoadFloat​(java.util.function.LongFunction<java.lang.Object> nameFunc)  
      LoadFloat​(java.util.function.LongFunction<java.lang.Object> nameFunc, float defaultValue)  
    • Method Summary

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

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

      • LoadFloat

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

        public LoadFloat​(java.lang.String name,
                         float defaultValue)
      • LoadFloat

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

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

      • apply

        public java.lang.Float apply​(long value)
        Specified by:
        apply in interface java.util.function.LongFunction<java.lang.Float>