Class LoadLong

  • All Implemented Interfaces:
    java.util.function.Function<java.lang.Object,​java.lang.Long>

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Long apply​(java.lang.Object o)  
      • 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.Function

        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.Function<java.lang.Object,​java.lang.Object> nameFunc)
      • LoadLong

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

      • apply

        public java.lang.Long apply​(java.lang.Object o)
        Specified by:
        apply in interface java.util.function.Function<java.lang.Object,​java.lang.Long>