Class NumberPattern

java.lang.Object
com.aquima.interactions.framework.mask.impl.AbstractMask
com.aquima.interactions.framework.mask.impl.NumberPattern
All Implemented Interfaces:
IMask

public class NumberPattern extends AbstractMask

This mask applies a number format with a specific pattern to an numerical value. See com.aquima.interactions.foundation.text.NumberFormat for more pattern information.

Required parameter:
  • pattern: the pattern to use.
Optional parameters:
  • prefix: string used as prefix.
  • postfix: string used as postfix.
  • zero-fraction: string that replaces the fraction part if the formatted value ends with 0 fraction (i.e. 10.00 -> 10.-)
Supported datatypes: integer, number, currency, percentage.
Since:
6.0
Author:
Jon van Leuven
See Also:
  • Constructor Details

    • NumberPattern

      public NumberPattern()
  • Method Details