Class SaveFloat

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

    public class SaveFloat
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.Float>
    Save a value to a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. Note that the input type is not that suitable for constructing names, so this is more likely to be used in an indirect naming pattern like
    SaveDouble(Load('id'))
    • Constructor Summary

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

      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

      • SaveFloat

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

        public SaveFloat​(java.util.function.LongFunction<java.lang.Object> nameFunc)
    • Method Detail

      • apply

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