Interface ValueWriter

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

Represents a value writer.

A value writer is a writer of values for a specified configuration type.

Since:
2.0.0 but heavily modified in 2.1.0
Author:
MrIvanPlays
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    write(Map<String,Object> values, Map<String,List<String>> fieldComments, PrintWriter writer, Settings settings)
    AnnotationConfig calls this method in order to write the specified values with the specified fieldComments to the specified PrintWriter writer.
  • Method Details

    • write

      void write(Map<String,Object> values, Map<String,List<String>> fieldComments, PrintWriter writer, Settings settings) throws IOException
      AnnotationConfig calls this method in order to write the specified values with the specified fieldComments to the specified PrintWriter writer. The written values or the method of writing could be altered via the provided Settings settings
      Parameters:
      values - the values needed to be written
      fieldComments - the comments of the fields
      writer - the writer to write
      settings - settings
      Throws:
      IOException - if an i/o occurs