Package io.hekate.core.report
Interface ConfigReporter
-
- All Known Implementing Classes:
DefaultConfigReporter
public interface ConfigReporter
Helper class to build configuration reports.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ConfigReporter
section(String name)
Creates a new sub-section of this report.default void
section(String name, Consumer<ConfigReporter> report)
Applies the given consumer to a sub-section of this report.void
value(String key, Object value)
Add the specified value to this report.
-
-
-
Method Detail
-
value
void value(String key, Object value)
Add the specified value to this report.- Parameters:
key
- Key.value
- Value.
-
section
ConfigReporter section(String name)
Creates a new sub-section of this report.- Parameters:
name
- Section name.- Returns:
- Section.
-
section
default void section(String name, Consumer<ConfigReporter> report)
Applies the given consumer to a sub-section of this report.- Parameters:
name
- Section name (seesection(String)
).report
- Consumer of sub-section reporter.
-
-