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,
Appendable buffer,
AttributeQuery attributes,
ChronoFunction<ChronoDisplay,R> query)
Creates a text output and writes it into given buffer.
|
<R> R print(T formattable, Appendable buffer, AttributeQuery attributes, ChronoFunction<ChronoDisplay,R> query) throws 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.
formattable - chronological entity to be formattedbuffer - format buffer any text output will be sent toattributes - control attributesquery - custom query returning any kind of resultIllegalArgumentException - if the object is not formattableIOException - if writing into buffer failsCopyright © 2014. All rights reserved.