public class FormatResolver
extends java.lang.Object
| Constructor and Description |
|---|
FormatResolver(java.lang.String format)
Create a new FormatResolver for the given format.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
apply(Resolver root,
java.util.function.Function<Resolver,java.lang.String> toString)
Applies the given format to the root resolver, and the function converting resolvers to string values.
|
static boolean |
canParseFormat(java.lang.String format)
Returns whether the given format can be parsed.
|
public FormatResolver(java.lang.String format)
format - The format to create a format resolver for.java.lang.IllegalArgumentException - If the format can't be parsed.public static boolean canParseFormat(java.lang.String format)
format - The format to parse.public java.lang.String apply(Resolver root, java.util.function.Function<Resolver,java.lang.String> toString)
root - The root to start the format resolving at.toString - The function to use to convert resolver instances to strings.