/** * Provides the standard currency format for the current locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the default locale */ public static NumberFormat getCurrencyFormat() { if (cachedCurrencyFormat == null) { cachedCurrencyFormat = getCurrencyFormat(CurrencyList.get().getDefault()); } return cachedCurrencyFormat; }
/** * Gets a <code>NumberFormat</code> instance for the default locale using * the specified pattern and the default currencyCode. * * @param pattern pattern for this formatter * @return a NumberFormat instance * @throws IllegalArgumentException if the specified pattern is invalid */ public static NumberFormat getFormat(String pattern) { return new NumberFormat(pattern, CurrencyList.get().getDefault(), true); }
/** * Provides the global currency format for the current locale, using its * default currency. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getGlobalCurrencyFormat() { return getGlobalCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the simple currency format for the current locale using its * default currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getSimpleCurrencyFormat() { return getSimpleCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the standard scientific format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * scientific format for the default locale */ public static NumberFormat getScientificFormat() { if (cachedScientificFormat == null) { cachedScientificFormat = new NumberFormat( defaultNumberConstants.scientificPattern(), CurrencyList.get().getDefault(), false); } return cachedScientificFormat; }
/** * Provides the standard decimal format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * decimal format for the default locale */ public static NumberFormat getDecimalFormat() { if (cachedDecimalFormat == null) { cachedDecimalFormat = new NumberFormat( defaultNumberConstants.decimalPattern(), CurrencyList.get().getDefault(), false); } return cachedDecimalFormat; }
/** * Provides the standard percent format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * percent format for the default locale */ public static NumberFormat getPercentFormat() { if (cachedPercentFormat == null) { cachedPercentFormat = new NumberFormat( defaultNumberConstants.percentPattern(), CurrencyList.get().getDefault(), false); } return cachedPercentFormat; }
/** * Provides the global currency format for the current locale, using its * default currency. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getGlobalCurrencyFormat() { return getGlobalCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the standard currency format for the current locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the default locale */ public static NumberFormat getCurrencyFormat() { if (cachedCurrencyFormat == null) { cachedCurrencyFormat = getCurrencyFormat(CurrencyList.get().getDefault()); } return cachedCurrencyFormat; }
/** * Provides the global currency format for the current locale, using its * default currency. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getGlobalCurrencyFormat() { return getGlobalCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the standard currency format for the current locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the default locale */ public static NumberFormat getCurrencyFormat() { if (cachedCurrencyFormat == null) { cachedCurrencyFormat = getCurrencyFormat(CurrencyList.get().getDefault()); } return cachedCurrencyFormat; }
/** * Gets a <code>NumberFormat</code> instance for the default locale using * the specified pattern and the default currencyCode. * * @param pattern pattern for this formatter * @return a NumberFormat instance * @throws IllegalArgumentException if the specified pattern is invalid */ public static NumberFormat getFormat(String pattern) { return new NumberFormat(pattern, CurrencyList.get().getDefault(), true); }
/** * Provides the simple currency format for the current locale using its * default currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getSimpleCurrencyFormat() { return getSimpleCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Gets a <code>NumberFormat</code> instance for the default locale using * the specified pattern and the default currencyCode. * * @param pattern pattern for this formatter * @return a NumberFormat instance * @throws IllegalArgumentException if the specified pattern is invalid */ public static NumberFormat getFormat(String pattern) { return new NumberFormat(pattern, CurrencyList.get().getDefault(), true); }
/** * Provides the simple currency format for the current locale using its * default currency. Note that these formats may be ambiguous if the * currency isn't clear from other content on the page. * * @return a <code>NumberFormat</code> capable of producing and consuming * currency format for the current locale */ public static NumberFormat getSimpleCurrencyFormat() { return getSimpleCurrencyFormat(CurrencyList.get().getDefault()); }
/** * Provides the standard percent format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * percent format for the default locale */ public static NumberFormat getPercentFormat() { if (cachedPercentFormat == null) { cachedPercentFormat = new NumberFormat( defaultNumberConstants.percentPattern(), CurrencyList.get().getDefault(), false); } return cachedPercentFormat; }
/** * Provides the standard scientific format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * scientific format for the default locale */ public static NumberFormat getScientificFormat() { if (cachedScientificFormat == null) { cachedScientificFormat = new NumberFormat( defaultNumberConstants.scientificPattern(), CurrencyList.get().getDefault(), false); } return cachedScientificFormat; }
/** * Provides the standard decimal format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * decimal format for the default locale */ public static NumberFormat getDecimalFormat() { if (cachedDecimalFormat == null) { cachedDecimalFormat = new NumberFormat( defaultNumberConstants.decimalPattern(), CurrencyList.get().getDefault(), false); } return cachedDecimalFormat; }
/** * Provides the standard percent format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * percent format for the default locale */ public static NumberFormat getPercentFormat() { if (cachedPercentFormat == null) { cachedPercentFormat = new NumberFormat( defaultNumberConstants.percentPattern(), CurrencyList.get().getDefault(), false); } return cachedPercentFormat; }
/** * Provides the standard scientific format for the default locale. * * @return a <code>NumberFormat</code> capable of producing and consuming * scientific format for the default locale */ public static NumberFormat getScientificFormat() { if (cachedScientificFormat == null) { cachedScientificFormat = new NumberFormat( defaultNumberConstants.scientificPattern(), CurrencyList.get().getDefault(), false); } return cachedScientificFormat; }