Lines Matching defs:Currency

55  * <code>Currency</code> instance for any given currency. Therefore, there's
56 * no public constructor. You obtain a <code>Currency</code> instance using
76 public final class Currency implements Serializable {
102 private static HashMap<String, Currency> instances = new HashMap<String, Currency>(7);
103 private static HashSet<Currency> available;
188 // Currency data format version
202 throw new InternalError("Currency data is possibly corrupted");
206 throw new InternalError("Currency data format is incorrect");
264 * Constructs a <code>Currency</code> instance. The constructor is private
268 private Currency(String currencyCode, int defaultFractionDigits, int numericCode) {
275 * Returns the <code>Currency</code> instance for the given currency code.
278 * @return the <code>Currency</code> instance for the given currency code
283 public static Currency getInstance(String currencyCode) {
287 private static Currency getInstance(String currencyCode, int defaultFractionDigits,
293 Currency instance = instances.get(currencyCode);
299 // Currency code not internally generated, need to verify first
327 instance = new Currency(currencyCode, defaultFractionDigits, numericCode);
334 * Returns the <code>Currency</code> instance for the country of the
345 * @param locale the locale for whose country a <code>Currency</code>
347 * @return the <code>Currency</code> instance for the country of the given
354 public static Currency getInstance(Locale locale) {
405 public static Set<Currency> getAvailableCurrencies() {
406 synchronized(Currency.class) {
408 available = new HashSet<Currency>(256);
437 Set<Currency> result = (Set<Currency>) available.clone();
734 PlatformLogger logger = PlatformLogger.getLogger("java.util.Currency");