Class LoadLong

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

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

      All Methods Instance Methods Concrete Methods 
      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

      • LoadLong

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

        public LoadLong​(java.lang.String name,
                        long defaultValue)
      • LoadLong

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

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

      • applyAsLong

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