Interface ElementFormatter<E extends IniElement>

All Known Implementing Classes:
AbstractFormatter, CommentFormatter, PropertyFormatter, SectionFormatter

public interface ElementFormatter<E extends IniElement>
将字符串值格式设置为IniElement
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    check(String value)
    check this value.
    format(String value, int line)
    this method will not check value, so you should check(String) first.
  • Method Details

    • check

      boolean check(String value)
      check this value.
      Parameters:
      value - value
      Returns:
      true if can.
    • format

      E format(String value, int line)
      this method will not check value, so you should check(String) first. However, not checking will not necessarily report an error, but may result in non-compliance.
      Parameters:
      value - a String value
      line - line number
      Returns:
      ElementFormatter, can not be null.