Module bus.setting

Interface Factory

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Factory
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 Details

    • apply

      Format apply(ElementFormatter<IniComment> commentElementFormatter, ElementFormatter<IniSection> sectionElementFormatter, ElementFormatter<IniProperty> propertyElementFormatter)
      Applies the given element formatters to create a new Format instance.
      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 Format instance.