public class Template extends Object implements LongFunction<String>
{} 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 and Description |
|---|
Template(LongUnaryOperator iterOp,
String template,
LongFunction<?>... funcs)
If an operator is provided, it is used to change the function input value in an additional way before each function.
|
Template(String template,
LongFunction<?>... funcs) |
public Template(String template, LongFunction<?>... funcs)
public Template(LongUnaryOperator iterOp, String template, LongFunction<?>... funcs)
iterOp - A pre-generation value mapping functiontemplate - A string template containing {} anchorsfuncs - A varargs length of LongFunctions of any output typepublic String apply(long value)
apply in interface LongFunction<String>Copyright © 2018. All rights reserved.