Class SimpleNumber

java.lang.Object
freemarker.template.SimpleNumber
All Implemented Interfaces:
TemplateModel, TemplateNumberModel, Serializable

public final class SimpleNumber extends Object implements TemplateNumberModel, Serializable
A simple implementation of the TemplateNumberModel interface. Note that this class is immutable.

This class is thread-safe.

See Also:
Serialized Form
  • Constructor Details

    • SimpleNumber

      public SimpleNumber(Number value)
    • SimpleNumber

      public SimpleNumber(byte val)
    • SimpleNumber

      public SimpleNumber(short val)
    • SimpleNumber

      public SimpleNumber(int val)
    • SimpleNumber

      public SimpleNumber(long val)
    • SimpleNumber

      public SimpleNumber(float val)
    • SimpleNumber

      public SimpleNumber(double val)
  • Method Details