1
1
/*
2
- * Copyright (c) 2018, 2022 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 2018, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
61
61
* For example:
62
62
* <br>In the {@link java.util.Locale#US US locale}, {@code 1000} can be formatted
63
63
* as {@code "1K"}, and {@code 1000000} as {@code "1M"}, depending upon the
64
- * <a href = "# compact_number_style" > style</a> used.
64
+ * {@linkplain ## compact_number_style style} used.
65
65
* <br>In the {@code "hi_IN"} locale, {@code 1000} can be formatted as
66
66
* "1 \u0939\u091C\u093C\u093E\u0930", and {@code 50000000} as "5 \u0915.",
67
- * depending upon the <a href = "# compact_number_style" > style</a> used.
67
+ * depending upon the {@linkplain ## compact_number_style style} used.
68
68
*
69
69
* <p>
70
70
* To obtain a {@code CompactNumberFormat} for a locale, use one
71
71
* of the factory methods given by {@code NumberFormat} for compact number
72
72
* formatting. For example,
73
73
* {@link NumberFormat#getCompactNumberInstance(Locale, Style)}.
74
74
*
75
- * <blockquote><pre>
75
+ * <blockquote>{@snippet lang=java :
76
76
* NumberFormat fmt = NumberFormat.getCompactNumberInstance(
77
77
* Locale.forLanguageTag("hi-IN"), NumberFormat.Style.SHORT);
78
78
* String result = fmt.format(1000);
79
- * </pre> </blockquote>
79
+ * } </blockquote>
80
80
*
81
81
* <h2><a id="compact_number_style">Style</a></h2>
82
82
* <p>
131
131
* <p>
132
132
* Many characters in a compact pattern are taken literally, they are matched
133
133
* during parsing and output unchanged during formatting.
134
- * <a href = " DecimalFormat.html# special_pattern_character"> Special characters</a> ,
134
+ * {@linkplain DecimalFormat## special_pattern_character Special characters} ,
135
135
* on the other hand, stand for other characters, strings, or classes of
136
136
* characters. They must be quoted, using single quote {@code ' (U+0027)}
137
137
* unless noted otherwise, if they are to appear in the prefix or suffix
170
170
* <i>Prefix<sub>optional</sub></i> <i>MinimumInteger</i> <i>Suffix<sub>optional</sub></i>
171
171
* <i>Prefix:</i>
172
172
* Any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and
173
- * <a href = " DecimalFormat.html# special_pattern_character"> special characters</a> .
173
+ * {@linkplain DecimalFormat## special_pattern_character special characters} .
174
174
* <i>Suffix:</i>
175
175
* Any Unicode characters except {@code U+FFFE}, {@code U+FFFF}, and
176
- * <a href = " DecimalFormat.html# special_pattern_character"> special characters</a> .
176
+ * {@linkplain DecimalFormat## special_pattern_character special characters} .
177
177
* <i>MinimumInteger:</i>
178
178
* 0
179
179
* 0 <i>MinimumInteger</i>
@@ -384,8 +384,7 @@ public final class CompactNumberFormat extends NumberFormat {
384
384
* @param decimalPattern a decimal pattern for general number formatting
385
385
* @param symbols the set of symbols to be used
386
386
* @param compactPatterns an array of
387
- * <a href = "CompactNumberFormat.html#compact_number_patterns">
388
- * compact number patterns</a>
387
+ * {@linkplain ##compact_number_patterns compact number patterns}
389
388
* @throws NullPointerException if any of the given arguments is
390
389
* {@code null}
391
390
* @throws IllegalArgumentException if the given {@code decimalPattern} or the
@@ -412,8 +411,7 @@ public CompactNumberFormat(String decimalPattern,
412
411
* @param decimalPattern a decimal pattern for general number formatting
413
412
* @param symbols the set of symbols to be used
414
413
* @param compactPatterns an array of
415
- * <a href = "CompactNumberFormat.html#compact_number_patterns">
416
- * compact number patterns</a>
414
+ * {@linkplain ##compact_number_patterns compact number patterns}
417
415
* @param pluralRules a String designating plural rules which associate
418
416
* the {@code Count} keyword, such as "{@code one}", and the
419
417
* actual integer number. Its syntax is defined in Unicode Consortium's
0 commit comments