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 TypeMethodDescriptionvoid
write
(Map<String, Object> values, Map<String, List<String>> fieldComments, PrintWriter writer, CustomOptions options) AnnotationConfig calls this method in order to write the specifiedvalues
with the specifiedfieldComments
to the specifiedPrintWriter
writer
.
-
Method Details
-
write
void write(Map<String, Object> values, Map<String, throws IOExceptionList<String>> fieldComments, PrintWriter writer, CustomOptions options) AnnotationConfig calls this method in order to write the specifiedvalues
with the specifiedfieldComments
to the specifiedPrintWriter
writer
. The written values or the method of writing could be altered viaCustomOptions
options
.- Parameters:
values
- the values needed to be writtenfieldComments
- the comments of the fieldswriter
- the writer to writeoptions
- custom options- Throws:
IOException
- if an i/o occurs
-