Class SaveDouble

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

    public class SaveDouble
    extends java.lang.Object
    implements java.util.function.DoubleUnaryOperator
    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
      SaveDouble​(java.lang.String name)  
      SaveDouble​(java.util.function.Function<java.lang.Object,​java.lang.Object> nameFunc)  
    • Method Summary

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

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.DoubleUnaryOperator

        andThen, compose
    • Constructor Detail

      • SaveDouble

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

        public SaveDouble​(java.util.function.Function<java.lang.Object,​java.lang.Object> nameFunc)
    • Method Detail

      • applyAsDouble

        public double applyAsDouble​(double operand)
        Specified by:
        applyAsDouble in interface java.util.function.DoubleUnaryOperator