T - generic type of chronological entity to be formattedpublic interface ChronoPrinter<T>
Prints a chronological entity.
ChronoEntity| Modifier and Type | Method and Description |
|---|---|
<R> R |
print(T formattable,
java.lang.Appendable buffer,
AttributeQuery attributes,
ChronoFunction<ChronoDisplay,R> query)
Creates a text output and writes it into given buffer.
|
<R> R print(T formattable, java.lang.Appendable buffer, AttributeQuery attributes, ChronoFunction<ChronoDisplay,R> query) throws java.io.IOException
Creates a text output and writes it into given buffer.
Note: Implementations have to call query.apply(...)
at the end to return a possibly meaningful result. An example
would be a query which produces just the identical input so
the result of printing a Moment will be the formatted
form of the original Moment.
R - generic result typeformattable - chronological entity to be formattedbuffer - format buffer any text output will be sent toattributes - control attributesquery - custom query returning any kind of resultjava.lang.IllegalArgumentException - if the object is not formattablejava.io.IOException - if writing into buffer fails