Class SaveLong

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

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

      Modifier and Type Method Description
      long applyAsLong​(long 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.LongUnaryOperator

        andThen, compose
    • Constructor Detail

      • SaveLong

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

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

      • applyAsLong

        public long applyAsLong​(long operand)
        Specified by:
        applyAsLong in interface java.util.function.LongUnaryOperator