- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A functional interface for creating an INI
Format instance. It provides the necessary element formatters for
comments, sections, and properties.- Since:
- Java 17+
- Author:
- Kimi Liu
-
Method Summary
Modifier and TypeMethodDescriptionapply(ElementFormatter<IniComment> commentElementFormatter, ElementFormatter<IniSection> sectionElementFormatter, ElementFormatter<IniProperty> propertyElementFormatter) Applies the given element formatters to create a newFormatinstance.
-
Method Details
-
apply
Format apply(ElementFormatter<IniComment> commentElementFormatter, ElementFormatter<IniSection> sectionElementFormatter, ElementFormatter<IniProperty> propertyElementFormatter) Applies the given element formatters to create a newFormatinstance.- Parameters:
commentElementFormatter- a formatter for comment lines.sectionElementFormatter- a formatter for section headers.propertyElementFormatter- a formatter for property lines (key-value pairs).- Returns:
- a new
Formatinstance.
-