T - generic type of chronological entity to be formattedpublic interface ChronoPrinter<T>
Prints a chronological entity.
ChronoEntity| Modifier and Type | Method and Description |
|---|---|
default AttributeQuery |
getAttributes()
Returns the global format attributes which are active if they are not
overridden by sectional attributes.
|
default String |
print(T formattable)
Prints given chronological entity as formatted text.
|
default Set<ElementPosition> |
print(T formattable,
StringBuilder buffer)
Prints given chronological entity as formatted text and writes
the text into given buffer.
|
Set<ElementPosition> |
print(T formattable,
StringBuilder buffer,
AttributeQuery attributes)
Prints given chronological entity as formatted text and writes
the text into given buffer.
|
default String print(T formattable)
Prints given chronological entity as formatted text.
formattable - object to be formattedIllegalArgumentException - if given object is not formattabledefault Set<ElementPosition> print(T formattable, StringBuilder buffer)
Prints given chronological entity as formatted text and writes the text into given buffer.
Equivalent to print(formattable, buffer, getAttributes()).
formattable - object to be formattedbuffer - text output bufferIllegalArgumentException - if given object is not formattableSet<ElementPosition> print(T formattable, StringBuilder buffer, AttributeQuery attributes)
Prints given chronological entity as formatted text and writes the text into given buffer.
formattable - object to be formattedbuffer - text output bufferattributes - format attributes which can control formattingIllegalArgumentException - if given object is not formattabledefault AttributeQuery getAttributes()
Returns the global format attributes which are active if they are not overridden by sectional attributes.
Copyright © 2014–2021. All rights reserved.