Class Save

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

    public class Save
    extends java.lang.Object
    implements java.util.function.Function<java.lang.Object,​java.lang.Object>
    Save the current input value at this point in the function chain to a thread-local variable name. The input value is unchanged, and available for the next function in the chain to use as-is.
    • Constructor Summary

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

      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

      • Save

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

        public Save​(java.util.function.Function<java.lang.Object,​java.lang.Object> nameFunc)
    • 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>