Package org.stringtemplate.v4
Class DateRenderer
- java.lang.Object
-
- org.stringtemplate.v4.DateRenderer
-
- All Implemented Interfaces:
AttributeRenderer<Object>
public class DateRenderer extends Object implements AttributeRenderer<Object>
A renderer forDateandCalendarobjects. It understands a variety of format names as shown informatToIntfield. By default it assumes"short"format. A prefix of"date:"or"time:"shows only those components of the time object.
-
-
Field Summary
Fields Modifier and Type Field Description static Map<String,Integer>formatToInt
-
Constructor Summary
Constructors Constructor Description DateRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString(Object value, String formatString, Locale locale)
-