Interface Renderer<T>

Type Parameters:
T - the type to render
All Known Implementing Classes:
AbstractRenderer, DateTimeFormatRenderer, DoubleRenderer, IntegerRenderer, LongRenderer, NumberFormatRenderer, PassthroughRenderer, ProxyRenderer, ToStringRenderer

public interface Renderer<T>
An object that can render other objects of a particular type into plain-text form. Allows decoupling that is useful for a dependency-injection architecture.
  • Method Summary

    Modifier and Type
    Method
    Description
    render(T object)
    Renders object as plain text.
    void
    render(T object, Appendable appendable)
    Renders object as plain text, appended directly to appendable.
  • Method Details

    • render

      String render(T object)
      Renders object as plain text. Should never throw any exceptions!
    • render

      void render(T object, Appendable appendable) throws IOException
      Renders object as plain text, appended directly to appendable. Should never throw any exceptions except if appendable throws an IOException.
      Throws:
      IOException