equal
deleted
inserted
replaced
423 * {@link #getNumberInstance() getNumberInstance()}. |
423 * {@link #getNumberInstance() getNumberInstance()}. |
424 * |
424 * |
425 * @return the {@code NumberFormat} instance for general-purpose number |
425 * @return the {@code NumberFormat} instance for general-purpose number |
426 * formatting |
426 * formatting |
427 */ |
427 */ |
428 public final static NumberFormat getInstance() { |
428 public static final NumberFormat getInstance() { |
429 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); |
429 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); |
430 } |
430 } |
431 |
431 |
432 /** |
432 /** |
433 * Returns a general-purpose number format for the specified locale. |
433 * Returns a general-purpose number format for the specified locale. |
452 * @return the {@code NumberFormat} instance for general-purpose number |
452 * @return the {@code NumberFormat} instance for general-purpose number |
453 * formatting |
453 * formatting |
454 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
454 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
455 * @see java.util.Locale.Category#FORMAT |
455 * @see java.util.Locale.Category#FORMAT |
456 */ |
456 */ |
457 public final static NumberFormat getNumberInstance() { |
457 public static final NumberFormat getNumberInstance() { |
458 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); |
458 return getInstance(Locale.getDefault(Locale.Category.FORMAT), NUMBERSTYLE); |
459 } |
459 } |
460 |
460 |
461 /** |
461 /** |
462 * Returns a general-purpose number format for the specified locale. |
462 * Returns a general-purpose number format for the specified locale. |
485 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
485 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
486 * @see java.util.Locale.Category#FORMAT |
486 * @see java.util.Locale.Category#FORMAT |
487 * @return a number format for integer values |
487 * @return a number format for integer values |
488 * @since 1.4 |
488 * @since 1.4 |
489 */ |
489 */ |
490 public final static NumberFormat getIntegerInstance() { |
490 public static final NumberFormat getIntegerInstance() { |
491 return getInstance(Locale.getDefault(Locale.Category.FORMAT), INTEGERSTYLE); |
491 return getInstance(Locale.getDefault(Locale.Category.FORMAT), INTEGERSTYLE); |
492 } |
492 } |
493 |
493 |
494 /** |
494 /** |
495 * Returns an integer number format for the specified locale. The |
495 * Returns an integer number format for the specified locale. The |
517 * |
517 * |
518 * @return the {@code NumberFormat} instance for currency formatting |
518 * @return the {@code NumberFormat} instance for currency formatting |
519 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
519 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
520 * @see java.util.Locale.Category#FORMAT |
520 * @see java.util.Locale.Category#FORMAT |
521 */ |
521 */ |
522 public final static NumberFormat getCurrencyInstance() { |
522 public static final NumberFormat getCurrencyInstance() { |
523 return getInstance(Locale.getDefault(Locale.Category.FORMAT), CURRENCYSTYLE); |
523 return getInstance(Locale.getDefault(Locale.Category.FORMAT), CURRENCYSTYLE); |
524 } |
524 } |
525 |
525 |
526 /** |
526 /** |
527 * Returns a currency format for the specified locale. |
527 * Returns a currency format for the specified locale. |
542 * |
542 * |
543 * @return the {@code NumberFormat} instance for percentage formatting |
543 * @return the {@code NumberFormat} instance for percentage formatting |
544 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
544 * @see java.util.Locale#getDefault(java.util.Locale.Category) |
545 * @see java.util.Locale.Category#FORMAT |
545 * @see java.util.Locale.Category#FORMAT |
546 */ |
546 */ |
547 public final static NumberFormat getPercentInstance() { |
547 public static final NumberFormat getPercentInstance() { |
548 return getInstance(Locale.getDefault(Locale.Category.FORMAT), PERCENTSTYLE); |
548 return getInstance(Locale.getDefault(Locale.Category.FORMAT), PERCENTSTYLE); |
549 } |
549 } |
550 |
550 |
551 /** |
551 /** |
552 * Returns a percentage format for the specified locale. |
552 * Returns a percentage format for the specified locale. |