long -> Load(function.LongFunction: nameFunc) -> Object
example: Load(NumberNameToString())
for the current thread, load an Object value from the named variable, where the variable name is returned by the provided function
long -> Load(String: name, Object: defaultValue) -> Object
example: Load('foo','testvalue')
for the current thread, load an Object value from the named variable, or the default value if the variable is not yet defined.
long -> Load(function.LongFunction: nameFunc, Object: defaultValue) -> Object
example: Load(NumberNameToString(),'testvalue')
for the current thread, load an Object value from the named variable, where the variable name is returned by the provided function, or thedefault value if the variable is not yet defined.
Object -> Load(String: name) -> Object
example: Load('foo')
for the current thread, load an Object value from the named variable
Object -> Load(function.Function<Object,Object>: nameFunc) -> Object
example: Load(NumberNameToString())
for the current thread, load an Object value from the named variable, where the variable name is returned by the provided function
Object -> Load(String: name, Object: defaultValue) -> Object
example: Load('foo','testvalue')
for the current thread, load an Object value from the named variable, or the default value if the variable is not yet defined.
Object -> Load(function.Function<Object,Object>: nameFunc, Object: defaultValue) -> Object
example: Load(NumberNameToString(),'testvalue')
for the current thread, load an Object value from the named variable, where the variable name is returned by the provided function, or thedefault value if the variable is not yet defined.
LoadDouble
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.
long -> LoadDouble(String: name) -> double
example: LoadDouble('foo')
for the current thread, load a double value from the named variable.
long -> LoadDouble(String: name, double: defaultValue) -> double
example: LoadDouble('foo',23D)
for the current thread, load a double value from the named variable,or the default value if the named variable is not defined.
long -> LoadDouble(function.LongFunction: nameFunc) -> double
example: LoadDouble(NumberNameToString())
for the current thread, load a double value from the named variable, where the variable name is provided by a function.
long -> LoadDouble(function.LongFunction: nameFunc, double: defaultValue) -> double
example: LoadDouble(NumberNameToString(),23D)
for the current thread, load a double value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
Object -> LoadDouble(String: name) -> Double
example: LoadDouble('foo')
for the current thread, load a double value from the named variable.
Object -> LoadDouble(String: name, double: defaultValue) -> Double
example: LoadDouble('foo',23D)
for the current thread, load a double value from the named variable,or the default value if the named variable is not defined.
Object -> LoadDouble(function.Function<Object,Object>: nameFunc) -> Double
example: LoadDouble(NumberNameToString())
for the current thread, load a double value from the named variable, where the variable name is provided by a function.
Object -> LoadDouble(function.Function<Object,Object>: nameFunc, double: defaultValue) -> Double
example: LoadDouble(NumberNameToString(),23D)
for the current thread, load a double value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
LoadFloat
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.
Object -> LoadFloat(String: name) -> Float
example: LoadFloat('foo')
for the current thread, load a float value from the named variable.
Object -> LoadFloat(String: name, float: defaultValue) -> Float
example: LoadFloat('foo',23F)
for the current thread, load a float value from the named variable,or the default value if the named variable is not defined.
Object -> LoadFloat(function.Function<Object,Object>: nameFunc) -> Float
example: LoadFloat(NumberNameToString())
for the current thread, load a float value from the named variable,where the variable name is provided by a function.
Object -> LoadFloat(function.Function<Object,Object>: nameFunc, float: defaultValue) -> Float
example: LoadFloat(NumberNameToString(),23F)
for the current thread, load a float value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
long -> LoadFloat(String: name) -> Float
example: LoadFloat('foo')
for the current thread, load a float value from the named variable.
long -> LoadFloat(String: name, float: defaultValue) -> Float
example: LoadFloat('foo',23F)
for the current thread, load a float value from the named variable,or the default value if the named variable is not defined.
long -> LoadFloat(function.LongFunction: nameFunc) -> Float
example: LoadFloat(NumberNameToString())
for the current thread, load a float value from the named variable,where the variable name is provided by a function.
long -> LoadFloat(function.LongFunction: nameFunc, float: defaultValue) -> Float
example: LoadFloat(NumberNameToString(),23F)
for the current thread, load a float value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
LoadInteger
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.
Object -> LoadInteger(String: name) -> Integer
example: LoadInteger('foo')
for the current thread, load an integer value from the named variable.
Object -> LoadInteger(String: name, int: defaultValue) -> Integer
example: LoadInteger('foo',42)
for the current thread, load an integer value from the named variable, or the default value if the named variable is not defined.
Object -> LoadInteger(function.Function<Object,Object>: nameFunc) -> Integer
example: LoadInteger(NumberNameToString())
for the current thread, load an integer value from the named variable,where the variable name is provided by a function.
Object -> LoadInteger(function.Function<Object,Object>: nameFunc, int: defaultValue) -> Integer
example: LoadInteger(NumberNameToString(),42)
for the current thread, load an integer value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
long -> LoadInteger(String: name) -> int
example: LoadInteger('foo')
for the current thread, load an integer value from the named variable.
long -> LoadInteger(String: name, int: defaultValue) -> int
example: LoadInteger('foo',42)
for the current thread, load an integer value from the named variable, or the default value if the named variable is not defined.
long -> LoadInteger(function.LongFunction: nameFunc) -> int
example: LoadInteger(NumberNameToString())
for the current thread, load an integer value from the named variable,where the variable name is provided by a function.
long -> LoadInteger(function.LongFunction: nameFunc, int: defaultValue) -> int
example: LoadInteger(NumberNameToString(),42)
for the current thread, load an integer value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
LoadLong
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.
long -> LoadLong(String: name) -> long
example: LoadLong('foo',42L)
for the current thread, load a long value from the named variable.
long -> LoadLong(String: name, long: defaultValue) -> long
example: LoadLong('foo',42L)
for the current thread, load a long value from the named variable, or the default value if the named variable is not defined.
long -> LoadLong(function.LongFunction: nameFunc) -> long
example: LoadLong(NumberNameToString(),42L)
for the current thread, load a long value from the named variable,where the variable name is provided by a function.
long -> LoadLong(function.LongFunction: nameFunc, long: defaultValue) -> long
example: LoadLong(NumberNameToString(),42L)
for the current thread, load a long value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
Object -> LoadLong(String: name) -> Long
example: LoadLong('foo',42L)
for the current thread, load a long value from the named variable.
Object -> LoadLong(String: name, long: defaultValue) -> Long
example: LoadLong('foo',42L)
for the current thread, load a long value from the named variable, or the default value if the named variable is not defined.
Object -> LoadLong(function.Function<Object,Object>: nameFunc) -> Long
example: LoadLong(NumberNameToString(),42L)
for the current thread, load a long value from the named variable,where the variable name is provided by a function.
Object -> LoadLong(function.Function<Object,Object>: nameFunc, long: defaultValue) -> Long
example: LoadLong(NumberNameToString(),42L)
for the current thread, load a long value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
LoadString
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.
Object -> LoadString(String: name) -> String
example: LoadString('foo','examplevalue')
for the current thread, load a String value from the named variable.
Object -> LoadString(String: name, String: defaultValue) -> String
example: LoadString('foo','examplevalue')
for the current thread, load a String value from the named variable, or the default value if the named variable is not defined.
Object -> LoadString(function.Function<Object,Object>: nameFunc) -> String
example: LoadString(NumberNameToString(),'examplevalue')
for the current thread, load a String value from the named variable, or the default value if the named variable is not defined.
Object -> LoadString(function.Function<Object,Object>: nameFunc, String: defaultValue) -> String
example: LoadString(NumberNameToString(),'examplevalue')
for the current thread, load a String value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
long -> LoadString(String: name) -> String
example: LoadString('foo','examplevalue')
for the current thread, load a String value from the named variable.
long -> LoadString(String: name, String: defaultValue) -> String
example: LoadString('foo','examplevalue')
for the current thread, load a String value from the named variable, or the default value if the named variable is not defined.
long -> LoadString(function.LongFunction: nameFunc) -> String
example: LoadString(NumberNameToString(),'examplevalue')
for the current thread, load a String value from the named variable, or the default value if the named variable is not defined.
long -> LoadString(function.LongFunction: nameFunc, String: defaultValue) -> String
example: LoadString(NumberNameToString(),'examplevalue')
for the current thread, load a String value from the named variable,where the variable name is provided by a function, or the default value if the namedvariable is not defined.
NullOrLoad
Reads a long variable from the input, hashes and scales it to the unit interval 0.0d - 1.0d, then uses the result to determine whether to return null object or a loaded value.
long -> NullOrLoad(double: ratio, String: varname) -> Object
NullOrPass
Reads a long variable from the thread local variable map, hashes and scales it to the unit interval 0.0d - 1.0d, then uses the result to determine whether to return a null object or the input value.
Object -> NullOrPass(double: ratio, String: varname) -> Object
Save
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.
long -> Save(String: name) -> long
example: Save('foo')
for the current thread, save the input object value to the named variable
long -> Save(function.LongFunction: nameFunc) -> long
example: Save(NumberNameToString())
for the current thread, save the current input object value to the named variable,where the variable name is provided by a function.
long -> Save(String: name) -> long
example: Save('foo')
save the current long value to the name 'foo' in this thread
long -> Save(function.Function<Object,Object>: nameFunc) -> long
example: Save(NumberNameToString())
save the current long value to the name generated by the function given.
String -> Save(String: name) -> String
example: Save('foo')
save the current String value to the name 'foo' in this thread
String -> Save(function.Function<Object,Object>: nameFunc) -> String
example: Save(NumberNameToString())
save the current String value to a named variable in this thread, where the variable name is provided by a function
Object -> Save(String: name) -> Object
example: Save('foo')
for the current thread, save the input object value to the named variable
Object -> Save(function.Function<Object,Object>: nameFunc) -> Object
example: Save(NumberNameToString())
for the current thread, save the current input object value to the named variable,where the variable name is provided by a function.
double -> Save(String: name) -> double
example: Save('foo')
for the current thread, save the current double value to the named variable.
double -> Save(function.Function<Object,Object>: nameFunc) -> double
example: Save(NumberNameToString())
for the current thread, save the current double value to the name 'foo' in this thread, where the variable name is provided by a function.
int -> Save(String: name) -> int
example: Save('foo')
save the current int value to the name 'foo' in this thread
int -> Save(function.Function<Object,Object>: nameFunc) -> int
example: Save(NumberNameToString())
save the current int value to a named variable in this thread,where the variable name is provided by a function.
SaveDouble
Save a value to a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. Note that the input type is not that suitable for constructing names, so this is more likely to be used in an indirect naming pattern like SaveDouble(Load('id'))
double -> SaveDouble(String: name) -> double
example: Save('foo')
save the current double value to the name 'foo' in this thread
double -> SaveDouble(function.Function<Object,Object>: nameFunc) -> double
example: Save(NumberNameToString())
save a double value to a named variable in the current thread, where the variable name is provided by a function.
long -> SaveDouble(String: name) -> double
example: Save('foo')
save the current double value to the name 'foo' in this thread
long -> SaveDouble(function.LongFunction: nameFunc) -> double
example: Save(NumberNameToString())
save a double value to a named variable in the current thread, where the variable name is provided by a function.
SaveFloat
Save a value to a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. Note that the input type is not that suitable for constructing names, so this is more likely to be used in an indirect naming pattern like SaveFloat(Load('id'))
long -> SaveFloat(String: name) -> Float
example: SaveFloat('foo')
save the current float value to a named variable in this thread.
long -> SaveFloat(function.LongFunction: nameFunc) -> Float
example: SaveFloat(NumberNameToString())
save the current float value to a named variable in this thread, where the variable name is provided by a function.
Float -> SaveFloat(String: name) -> Float
example: SaveFloat('foo')
save the current float value to a named variable in this thread.
Float -> SaveFloat(function.Function<Object,Object>: nameFunc) -> Float
example: SaveFloat(NumberNameToString())
save the current float value to a named variable in this thread, where the variable name is provided by a function.
SaveInteger
Save a value to a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. Note that the input type is not that suitable for constructing names, so this is more likely to be used in an indirect naming pattern like SaveInteger(Load('id'))
int -> SaveInteger(String: name) -> int
example: SaveInteger('foo')
save the current integer value to a named variable in this thread.
int -> SaveInteger(function.Function<Object,Object>: nameFunc) -> int
example: SaveInteger(NumberNameToString())
save the current integer value to a named variable in this thread, where the variable name is provided by a function.
long -> SaveInteger(String: name) -> int
example: SaveInteger('foo')
save the current integer value to a named variable in this thread.
long -> SaveInteger(function.LongFunction: nameFunc) -> int
example: SaveInteger(NumberNameToString())
save the current integer value to a named variable in this thread, where the variable name is provided by a function.
SaveLong
Save a value to a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. Note that the input type is not that suitable for constructing names, so this is more likely to be used in an indirect naming pattern like SaveLong(Load('id'))
long -> SaveLong(String: name) -> long
example: SaveLong('foo')
save the current long value to a named variable in this thread.
long -> SaveLong(function.Function<Object,Object>: nameFunc) -> long
example: SaveLong(NumberNameToString())
save the current long value to a named variable in this thread, where the variable name is provided by a function.
long -> SaveLong(String: name) -> long
example: SaveLong('foo')
save the current long value to a named variable in this thread.
long -> SaveLong(function.Function<Object,Object>: nameFunc) -> long
example: SaveLong(NumberNameToString())
save the current long value to a named variable in this thread, where the variable name is provided by a function.
SaveString
Save a value to a named thread-local variable, where the variable name is fixed or a generated variable name from a provided function. Note that the input type is not that suitable for constructing names, so this is more likely to be used in an indirect naming pattern like SaveString(Load('id'))
long -> SaveString(String: name) -> String
example: SaveString('foo')
save the current String value to a named variable in this thread.
long -> SaveString(function.LongFunction: nameFunc) -> String
example: SaveString(NumberNameToString())
save the current String value to a named variable in this thread, where the variable name is provided by a function.
String -> SaveString(String: name) -> String
example: SaveString('foo')
save the current String value to a named variable in this thread.
String -> SaveString(function.Function<Object,Object>: nameFunc) -> String
example: SaveString(NumberNameToString())
save the current String value to a named variable in this thread, where the variable name is provided by a function.
Show
Show diagnostic values for the thread-local variable map.
long -> Show() -> String
example: Show()
Show all values in a json-like format
long -> Show(String[]...: names) -> String
example: Show('foo')
Show only the 'foo' value in a json-like format
example: Show('foo','bar')
Show the 'foo' and 'bar' values in a json-like format
Object -> Show() -> String
example: Show()
Show all values in a json-like format
Object -> Show(String[]...: names) -> String
example: Show('foo')
Show only the 'foo' value in a json-like format
example: Show('foo','bar')
Show the 'foo' and 'bar' values in a json-like format
Swap
Load a named value from the per-thread state map. The previous input value will be stored in the named value, and the previously stored value will be returned. A default value to return may be provided in case there was no previously stored value under the given name.
Object -> Swap(String: name) -> Object
example: Swap('foo')
for the current thread, swap the input value with the named variable and returned the named variable
Object -> Swap(String: name, Object: defaultValue) -> Object
example: Swap('foo','examplevalue')
for the current thread, swap the input value with the named variable and returned the named variable, or return the default value if the named value is not defined.
Object -> Swap(function.Function<Object,Object>: nameFunc) -> Object
example: Swap(NumberNameToString())
for the current thread, swap the input value with the named variable and returned the named variable, where the variable name is generated by the provided function.
Object -> Swap(function.Function<Object,Object>: nameFunc, Object: defaultValue) -> Object
example: Swap(NumberNameToString(),'examplevalue')
for the current thread, swap the input value with the named variable and returned the named variable, where the variable name is generated by the provided function, or the default value if the named value is not defined.
long -> Swap(String: name) -> Object
example: Swap('foo')
for the current thread, swap the input value with the named variable and returned the named variable
long -> Swap(String: name, Object: defaultValue) -> Object
example: Swap('foo','examplevalue')
for the current thread, swap the input value with the named variable and returned the named variable, or return the default value if the named value is not defined.
long -> Swap(function.LongFunction: nameFunc) -> Object
example: Swap(NumberNameToString())
for the current thread, swap the input value with the named variable and returned the named variable, where the variable name is generated by the provided function.
long -> Swap(function.LongFunction: nameFunc, Object: defaultValue) -> Object
example: Swap(NumberNameToString(),'examplevalue')
for the current thread, swap the input value with the named variable and returned the named variable, where the variable name is generated by the provided function, or the default value if the named value is not defined.
long -> Swap(String: name) -> long
example: Swap('foo')
for the current thread, swap the input value with the named variable and returned the named variable.
long -> Swap(String: name, long: defaultValue) -> long
example: Swap('foo',234L)
for the current thread, swap the input value with the named variable and returned the named variable,or the default value if the named variable is not defined.
long -> Swap(function.LongFunction: nameFunc) -> long
example: Swap(NumberNameToString())
for the current thread, swap the input value with the named variable and returned the named variable, where the variable name is generated by the provided function.
long -> Swap(function.LongFunction: nameFunc, long: defaultValue) -> long
example: Swap(NumberNameToString(), 234L)
for the current thread, swap the input value with the named variable and returned the named variable, where the variable name is generated by the provided function, or the default value if the named variable is not defined.
ThreadNum
Matches a digit sequence in the current thread name and caches it in a thread local. This allows you to use any intentionally indexed thread factories to provide an analogue for concurrency. Note that once the thread number is cached, it will not be refreshed. This means you can't change the thread name and get an updated value.
UnsetOrLoad
Reads a long variable from the input, hashes and scales it to the unit interval 0.0d - 1.0d, then uses the result to determine whether to return UNSET.value or a loaded value.
long -> UnsetOrLoad(double: ratio, String: varname) -> Object
UnsetOrPass
Reads a long variable from the thread local variable map, hashes and scales it to the unit interval 0.0d - 1.0d, then uses the result to determine whether to return UNSET.value or the input value.
Object -> UnsetOrPass(double: ratio, String: varname) -> Object
Back to top