T
- - type of object to append.@ParametersAreNonnullByDefault @FunctionalInterface public interface ObjectAppender<T> extends BiConsumer<T,Appendable>
Modifier and Type | Field and Description |
---|---|
static ObjectAppender<Object> |
TOSTRING_APPENDER
A simple Object appender that invokes the toString method of the object and writes the object out.
|
Modifier and Type | Method and Description |
---|---|
default void |
accept(T object,
Appendable appendTo) |
void |
append(T object,
Appendable appendTo)
Write an Object to a char stream.
|
default MimeType |
getAppendedType()
the MimeType of the format used to write the Object.
|
andThen
static final ObjectAppender<Object> TOSTRING_APPENDER
default MimeType getAppendedType()
void append(T object, Appendable appendTo) throws IOException
object
- appendTo
- IOException
default void accept(T object, Appendable appendTo)
accept
in interface BiConsumer<T,Appendable>
Copyright © 2018 SPF4J. All rights reserved.