public static interface FormatterFunc.Closeable extends FormatterFunc, AutoCloseable
Function<String, String> and BiFunction<String, File, String> whose implementation requires a resource which should be released when the function is no longer needed.
FormatterFunc.Closeable| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static FormatterFunc.Closeable |
of(AutoCloseable closeable,
FormatterFunc function)
Creates a
FormatterFunc.Closeable from an AutoCloseable and a function. |
applyapplyvoid close()
close in interface AutoCloseablestatic FormatterFunc.Closeable of(AutoCloseable closeable, FormatterFunc function)
Creates a FormatterFunc.Closeable from an AutoCloseable and a function.