Class NumberFormatSettings
java.lang.Object
com.aquima.interactions.foundation.text.NumberFormatSettings
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionNumberFormatSettings
(String inputPattern) Constructs a pattern for excluding localised information. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value specified.protected int
Returns the value specified.protected int
Returns the value specified.protected int
Returns the value specified.protected int
Returns the value specified.protected String
Returns the value specified, can be null.protected String
Returns the value specified, can be null.protected String
Returns the value specified, can be null.protected String
Returns the value specified, can be null.
-
Constructor Details
-
NumberFormatSettings
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
Returns the value specified, can be null.- Returns:
- String representing the prefix
-
getNegativeSuffix
Returns the value specified, can be null.- Returns:
- String representing the suffix
-
getPositivePreFix
Returns the value specified, can be null.- Returns:
- String representing the prefix
-
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
Returns the value specified.- Returns:
- int representing the count of the digits.
-