mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8231186: Replace html tag <code>foo</code> with javadoc tag {@code foo} in java.base
Minor coding style update of javadoc tag in any file in java.base Reviewed-by: bchristi, lancea
This commit is contained in:
parent
13d0bac294
commit
d15a57b842
139 changed files with 3499 additions and 3499 deletions
|
@ -49,28 +49,28 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
|||
|
||||
|
||||
/**
|
||||
* The <code>Collator</code> class performs locale-sensitive
|
||||
* <code>String</code> comparison. You use this class to build
|
||||
* The {@code Collator} class performs locale-sensitive
|
||||
* {@code String} comparison. You use this class to build
|
||||
* searching and sorting routines for natural language text.
|
||||
*
|
||||
* <p>
|
||||
* <code>Collator</code> is an abstract base class. Subclasses
|
||||
* {@code Collator} is an abstract base class. Subclasses
|
||||
* implement specific collation strategies. One subclass,
|
||||
* <code>RuleBasedCollator</code>, is currently provided with
|
||||
* {@code RuleBasedCollator}, is currently provided with
|
||||
* the Java Platform and is applicable to a wide set of languages. Other
|
||||
* subclasses may be created to handle more specialized needs.
|
||||
*
|
||||
* <p>
|
||||
* Like other locale-sensitive classes, you can use the static
|
||||
* factory method, <code>getInstance</code>, to obtain the appropriate
|
||||
* <code>Collator</code> object for a given locale. You will only need
|
||||
* to look at the subclasses of <code>Collator</code> if you need
|
||||
* factory method, {@code getInstance}, to obtain the appropriate
|
||||
* {@code Collator} object for a given locale. You will only need
|
||||
* to look at the subclasses of {@code Collator} if you need
|
||||
* to understand the details of a particular collation strategy or
|
||||
* if you need to modify that strategy.
|
||||
*
|
||||
* <p>
|
||||
* The following example shows how to compare two strings using
|
||||
* the <code>Collator</code> for the default locale.
|
||||
* the {@code Collator} for the default locale.
|
||||
* <blockquote>
|
||||
* <pre>{@code
|
||||
* // Compare two strings in the default locale
|
||||
|
@ -83,10 +83,10 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
|||
* </blockquote>
|
||||
*
|
||||
* <p>
|
||||
* You can set a <code>Collator</code>'s <em>strength</em> property
|
||||
* You can set a {@code Collator}'s <em>strength</em> property
|
||||
* to determine the level of difference considered significant in
|
||||
* comparisons. Four strengths are provided: <code>PRIMARY</code>,
|
||||
* <code>SECONDARY</code>, <code>TERTIARY</code>, and <code>IDENTICAL</code>.
|
||||
* comparisons. Four strengths are provided: {@code PRIMARY},
|
||||
* {@code SECONDARY}, {@code TERTIARY}, and {@code IDENTICAL}.
|
||||
* The exact assignment of strengths to language features is
|
||||
* locale dependent. For example, in Czech, "e" and "f" are considered
|
||||
* primary differences, while "e" and "ě" are secondary differences,
|
||||
|
@ -104,19 +104,19 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
|||
* </pre>
|
||||
* </blockquote>
|
||||
* <p>
|
||||
* For comparing <code>String</code>s exactly once, the <code>compare</code>
|
||||
* For comparing {@code String}s exactly once, the {@code compare}
|
||||
* method provides the best performance. When sorting a list of
|
||||
* <code>String</code>s however, it is generally necessary to compare each
|
||||
* <code>String</code> multiple times. In this case, <code>CollationKey</code>s
|
||||
* provide better performance. The <code>CollationKey</code> class converts
|
||||
* a <code>String</code> to a series of bits that can be compared bitwise
|
||||
* against other <code>CollationKey</code>s. A <code>CollationKey</code> is
|
||||
* created by a <code>Collator</code> object for a given <code>String</code>.
|
||||
* {@code String}s however, it is generally necessary to compare each
|
||||
* {@code String} multiple times. In this case, {@code CollationKey}s
|
||||
* provide better performance. The {@code CollationKey} class converts
|
||||
* a {@code String} to a series of bits that can be compared bitwise
|
||||
* against other {@code CollationKey}s. A {@code CollationKey} is
|
||||
* created by a {@code Collator} object for a given {@code String}.
|
||||
* <br>
|
||||
* <strong>Note:</strong> <code>CollationKey</code>s from different
|
||||
* <code>Collator</code>s can not be compared. See the class description
|
||||
* <strong>Note:</strong> {@code CollationKey}s from different
|
||||
* {@code Collator}s can not be compared. See the class description
|
||||
* for {@link CollationKey}
|
||||
* for an example using <code>CollationKey</code>s.
|
||||
* for an example using {@code CollationKey}s.
|
||||
*
|
||||
* @see RuleBasedCollator
|
||||
* @see CollationKey
|
||||
|
@ -291,7 +291,7 @@ public abstract class Collator
|
|||
* to, or greater than the second.
|
||||
* <p>
|
||||
* This implementation merely returns
|
||||
* <code> compare((String)o1, (String)o2) </code>.
|
||||
* {@code compare((String)o1, (String)o2) }.
|
||||
*
|
||||
* @return a negative integer, zero, or a positive integer as the
|
||||
* first argument is less than, equal to, or greater than the
|
||||
|
@ -416,7 +416,7 @@ public abstract class Collator
|
|||
|
||||
/**
|
||||
* Returns an array of all locales for which the
|
||||
* <code>getInstance</code> methods of this class can return
|
||||
* {@code getInstance} methods of this class can return
|
||||
* localized instances.
|
||||
* The returned array represents the union of locales supported
|
||||
* by the Java runtime and by installed
|
||||
|
@ -425,7 +425,7 @@ public abstract class Collator
|
|||
* {@link java.util.Locale#US Locale.US}.
|
||||
*
|
||||
* @return An array of locales for which localized
|
||||
* <code>Collator</code> instances are available.
|
||||
* {@code Collator} instances are available.
|
||||
*/
|
||||
public static synchronized Locale[] getAvailableLocales() {
|
||||
LocaleServiceProviderPool pool =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue