Class TemplateNumberFormat

java.lang.Object
freemarker.core.TemplateValueFormat
freemarker.core.TemplateNumberFormat

public abstract class TemplateNumberFormat extends TemplateValueFormat
Represents a number format; used in templates for formatting and parsing with that format. This is similar to Java's NumberFormat, but made to fit the requirements of FreeMarker. Also, it makes easier to define formats that can't be represented with Java's existing NumberFormat implementations.

Implementations need not be thread-safe if the TemplateNumberFormatFactory doesn't recycle them among different Environment-s. As far as FreeMarker's concerned, instances are bound to a single Environment, and Environment-s are thread-local objects.

Since:
2.3.24