Class LoadString

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

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

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

      • LoadString

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

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

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

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

      • apply

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