Class Load

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

    public class Load
    extends java.lang.Object
    implements java.util.function.LongFunction<java.lang.Object>
    Load a named value from the per-thread state map. The previous input value will be forgotten, and the named value will replace it before the next function in the chain.
    • Constructor Summary

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

      Modifier and Type Method Description
      java.lang.Object apply​(long value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Load

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

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

        public Load​(java.lang.String name,
                    java.lang.Object defaultValue)
      • Load

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

      • apply

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