Class NumberFormatSettings

java.lang.Object
com.aquima.interactions.foundation.text.NumberFormatSettings
All Implemented Interfaces:
Serializable

public final class NumberFormatSettings extends Object implements Serializable
Holds the number format settings, excluding all localized information. Assuming a scientific locale in which '.' represents fraction separator and a ',' as a grouping separator.
Since:
6.0
Author:
F. van der Meer
See Also:
  • Constructor Details

    • NumberFormatSettings

      public NumberFormatSettings(String inputPattern)
      Constructs a pattern for excluding localised information. For internal use only, used only by the NumberFormat class. pattern:positivePattern:negativePattern * Examples: "##0.0" "##0.0:+#" "##0.0:+#:-#" "##0.0:+(#):-(#)" "#,##0.0:+(#):-(#)"
      Parameters:
      inputPattern - the input pattern to parse.
      Throws:
      PatternException - When the pattern could not be parsed.
  • Method Details

    • getNegativePreFix

      protected String getNegativePreFix()
      Returns the value specified, can be null.
      Returns:
      String representing the prefix
    • getNegativeSuffix

      protected String getNegativeSuffix()
      Returns the value specified, can be null.
      Returns:
      String representing the suffix
    • getPositivePreFix

      protected String getPositivePreFix()
      Returns the value specified, can be null.
      Returns:
      String representing the prefix
    • getPositiveSuffix

      protected String getPositiveSuffix()
      Returns the value specified, can be null.
      Returns:
      String representing the suffix
    • getMaximumFractionDigits

      protected int getMaximumFractionDigits()
      Returns the value specified.
      Returns:
      int representing the count of the digits.
    • getMinimumFractionDigits

      protected int getMinimumFractionDigits()
      Returns the value specified.
      Returns:
      int representing the count of the digits.
    • getMinimumIntegerDigits

      protected int getMinimumIntegerDigits()
      Returns the value specified.
      Returns:
      int representing the count of the digits.
    • getMaximumIntegerDigits

      protected int getMaximumIntegerDigits()
      Returns the value specified.
      Returns:
      int representing the count of the digits.
    • getGroupingSize

      public Integer getGroupingSize()
      Returns the value specified.
      Returns:
      int representing the count of the digits.