43 import java.io.Serializable;
44 import java.text.spi.DecimalFormatSymbolsProvider;
45 import java.util.Currency;
46 import java.util.Locale;
47 import sun.util.locale.provider.LocaleProviderAdapter;
48 import sun.util.locale.provider.LocaleServiceProviderPool;
49 import sun.util.locale.provider.ResourceBundleBasedAdapter;
50
51 /**
52 * This class represents the set of symbols (such as the decimal separator,
53 * the grouping separator, and so on) needed by <code>DecimalFormat</code>
54 * to format numbers. <code>DecimalFormat</code> creates for itself an instance of
55 * <code>DecimalFormatSymbols</code> from its locale data. If you need to change any
56 * of these symbols, you can get the <code>DecimalFormatSymbols</code> object from
57 * your <code>DecimalFormat</code> and modify it.
58 *
59 * @see java.util.Locale
60 * @see DecimalFormat
61 * @author Mark Davis
62 * @author Alan Liu
63 */
64
65 public class DecimalFormatSymbols implements Cloneable, Serializable {
66
67 /**
68 * Create a DecimalFormatSymbols object for the default
69 * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
70 * This constructor can only construct instances for the locales
71 * supported by the Java runtime environment, not for those
72 * supported by installed
73 * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
74 * implementations. For full locale coverage, use the
75 * {@link #getInstance(Locale) getInstance} method.
76 * <p>This is equivalent to calling
77 * {@link #DecimalFormatSymbols(Locale)
78 * DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT))}.
79 * @see java.util.Locale#getDefault(java.util.Locale.Category)
80 * @see java.util.Locale.Category#FORMAT
81 */
82 public DecimalFormatSymbols() {
|
43 import java.io.Serializable;
44 import java.text.spi.DecimalFormatSymbolsProvider;
45 import java.util.Currency;
46 import java.util.Locale;
47 import sun.util.locale.provider.LocaleProviderAdapter;
48 import sun.util.locale.provider.LocaleServiceProviderPool;
49 import sun.util.locale.provider.ResourceBundleBasedAdapter;
50
51 /**
52 * This class represents the set of symbols (such as the decimal separator,
53 * the grouping separator, and so on) needed by <code>DecimalFormat</code>
54 * to format numbers. <code>DecimalFormat</code> creates for itself an instance of
55 * <code>DecimalFormatSymbols</code> from its locale data. If you need to change any
56 * of these symbols, you can get the <code>DecimalFormatSymbols</code> object from
57 * your <code>DecimalFormat</code> and modify it.
58 *
59 * @see java.util.Locale
60 * @see DecimalFormat
61 * @author Mark Davis
62 * @author Alan Liu
63 * @since 1.1
64 */
65
66 public class DecimalFormatSymbols implements Cloneable, Serializable {
67
68 /**
69 * Create a DecimalFormatSymbols object for the default
70 * {@link java.util.Locale.Category#FORMAT FORMAT} locale.
71 * This constructor can only construct instances for the locales
72 * supported by the Java runtime environment, not for those
73 * supported by installed
74 * {@link java.text.spi.DecimalFormatSymbolsProvider DecimalFormatSymbolsProvider}
75 * implementations. For full locale coverage, use the
76 * {@link #getInstance(Locale) getInstance} method.
77 * <p>This is equivalent to calling
78 * {@link #DecimalFormatSymbols(Locale)
79 * DecimalFormatSymbols(Locale.getDefault(Locale.Category.FORMAT))}.
80 * @see java.util.Locale#getDefault(java.util.Locale.Category)
81 * @see java.util.Locale.Category#FORMAT
82 */
83 public DecimalFormatSymbols() {
|