Class Template
- java.lang.Object
-
- io.virtdata.basicsmappers.from_long.to_string.Template
-
- All Implemented Interfaces:
java.util.function.LongFunction<java.lang.String>
- Direct Known Subclasses:
JoinTemplate
public class Template extends java.lang.Object implements java.util.function.LongFunction<java.lang.String>Creates a template function which will yield a string which fits the template provided, with all occurrences of{}substituted pair-wise with the result of the provided functions. The number of{}entries in the template must strictly match the number of functions or an error will be thrown. To provide differing values for similarly defined functions in the list, the input value used is automatically incremented by one for each function, starting with the initial input value.
-
-
Constructor Summary
Constructors Constructor Description Template(java.lang.String template, java.util.function.DoubleUnaryOperator... funcs)Template(java.lang.String template, java.util.function.Function<java.lang.Long,?>... funcs)Template(java.lang.String template, java.util.function.IntUnaryOperator... funcs)Template(java.lang.String template, java.util.function.LongFunction<?>... funcs)Template(java.lang.String template, java.util.function.LongToDoubleFunction... funcs)Template(java.lang.String template, java.util.function.LongToIntFunction... funcs)Template(java.lang.String template, java.util.function.LongUnaryOperator... funcs)Template(java.util.function.LongUnaryOperator iterOp, java.lang.String template, java.util.function.LongFunction<?>... funcs)If an operator is provided, it is used to change the function input value in an additional way before each function.
-
Method Summary
Modifier and Type Method Description java.lang.Stringapply(long value)
-
-
-
Constructor Detail
-
Template
public Template(java.lang.String template, java.util.function.LongFunction<?>... funcs)
-
Template
public Template(java.lang.String template, java.util.function.Function<java.lang.Long,?>... funcs)
-
Template
public Template(java.lang.String template, java.util.function.LongUnaryOperator... funcs)
-
Template
public Template(java.lang.String template, java.util.function.IntUnaryOperator... funcs)
-
Template
public Template(java.lang.String template, java.util.function.DoubleUnaryOperator... funcs)
-
Template
public Template(java.lang.String template, java.util.function.LongToDoubleFunction... funcs)
-
Template
public Template(java.lang.String template, java.util.function.LongToIntFunction... funcs)
-
Template
public Template(java.util.function.LongUnaryOperator iterOp, java.lang.String template, java.util.function.LongFunction<?>... funcs)If an operator is provided, it is used to change the function input value in an additional way before each function.- Parameters:
iterOp- A pre-generation value mapping functiontemplate- A string template containing{}anchorsfuncs- A varargs length of LongFunctions of any output type
-
-