Class Load

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object 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

      • Load

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

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

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

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

      • apply

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