Top Description Methods
org.stringtemplate.v4

public Interface AttributeRenderer<T>

Known Direct Implementers
org.stringtemplate.v4.DateRenderer, org.stringtemplate.v4.NumberRenderer, org.stringtemplate.v4.StringRenderer
Type Parameters
<T>
the type of values this renderer can handle.
Imports
java.util.Locale

This interface describes an object that knows how to format or otherwise render an object appropriately. There is one renderer registered per group for a given Java type.

If the format string passed to the renderer is not recognized then simply call Object#toString.

formatString can be null but locale will at least be Locale#getDefault.

Method Summary

Modifier and TypeMethod and Description
public String
toString(T value, String formatString, Locale locale)

Method Detail

toStringback to summary
public String toString(T value, String formatString, Locale locale)