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 Details

    • write

      void write(Map<String,Object> values, Map<String,List<String>> fieldComments, PrintWriter writer, CustomOptions options) 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 CustomOptions options.
      Parameters:
      values - the values needed to be written
      fieldComments - the comments of the fields
      writer - the writer to write
      options - custom options
      Throws:
      IOException - if an i/o occurs