public class NumericConfig extends Object
US_NUMERIC_CONFIG
instance provides US
specific locale configuration. Databases which have been built for other
locales can utilize custom implementations of NumericConfig in order to
evaluate expressions correctly.Modifier and Type | Class and Description |
---|---|
static class |
NumericConfig.Type |
Modifier and Type | Field and Description |
---|---|
static NumericConfig |
US_NUMERIC_CONFIG |
Constructor and Description |
---|
NumericConfig(int numDecDigits,
boolean incLeadingDigit,
boolean useNegParens,
boolean useNegCurrencyParens,
int numGroupDigits,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
String |
format(BigDecimal bd) |
String |
format(double d) |
String |
format(float f) |
DecimalFormatSymbols |
getDecimalFormatSymbols() |
String |
getNumberFormat(NumericConfig.Type type) |
int |
getNumDecimalDigits() |
int |
getNumGroupingDigits() |
boolean |
includeLeadingDigit() |
boolean |
useParensForCurrencyNegatives() |
boolean |
useParensForNegatives() |
public static final NumericConfig US_NUMERIC_CONFIG
public NumericConfig(int numDecDigits, boolean incLeadingDigit, boolean useNegParens, boolean useNegCurrencyParens, int numGroupDigits, Locale locale)
public int getNumDecimalDigits()
public boolean includeLeadingDigit()
public boolean useParensForNegatives()
public boolean useParensForCurrencyNegatives()
public int getNumGroupingDigits()
public String getNumberFormat(NumericConfig.Type type)
public DecimalFormatSymbols getDecimalFormatSymbols()
public String format(float f)
public String format(double d)
public String format(BigDecimal bd)
Copyright © 2005–2024 OpenHMS. All rights reserved.