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
|
@ -48,23 +48,23 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
|||
|
||||
|
||||
/**
|
||||
* The <code>BreakIterator</code> class implements methods for finding
|
||||
* the location of boundaries in text. Instances of <code>BreakIterator</code>
|
||||
* The {@code BreakIterator} class implements methods for finding
|
||||
* the location of boundaries in text. Instances of {@code BreakIterator}
|
||||
* maintain a current position and scan over text
|
||||
* returning the index of characters where boundaries occur.
|
||||
* Internally, <code>BreakIterator</code> scans text using a
|
||||
* <code>CharacterIterator</code>, and is thus able to scan text held
|
||||
* by any object implementing that protocol. A <code>StringCharacterIterator</code>
|
||||
* is used to scan <code>String</code> objects passed to <code>setText</code>.
|
||||
* Internally, {@code BreakIterator} scans text using a
|
||||
* {@code CharacterIterator}, and is thus able to scan text held
|
||||
* by any object implementing that protocol. A {@code StringCharacterIterator}
|
||||
* is used to scan {@code String} objects passed to {@code setText}.
|
||||
*
|
||||
* <p>
|
||||
* You use the factory methods provided by this class to create
|
||||
* instances of various types of break iterators. In particular,
|
||||
* use <code>getWordInstance</code>, <code>getLineInstance</code>,
|
||||
* <code>getSentenceInstance</code>, and <code>getCharacterInstance</code>
|
||||
* to create <code>BreakIterator</code>s that perform
|
||||
* use {@code getWordInstance}, {@code getLineInstance},
|
||||
* {@code getSentenceInstance}, and {@code getCharacterInstance}
|
||||
* to create {@code BreakIterator}s that perform
|
||||
* word, line, sentence, and character boundary analysis respectively.
|
||||
* A single <code>BreakIterator</code> can work only on one unit
|
||||
* A single {@code BreakIterator} can work only on one unit
|
||||
* (word, line, sentence, and so on). You must use a different iterator
|
||||
* for each unit boundary analysis you wish to perform.
|
||||
*
|
||||
|
@ -100,7 +100,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
|||
* differ between languages.
|
||||
*
|
||||
* <p>
|
||||
* The <code>BreakIterator</code> instances returned by the factory methods
|
||||
* The {@code BreakIterator} instances returned by the factory methods
|
||||
* of this class are intended for use with natural languages only, not for
|
||||
* programming language text. It is however possible to define subclasses
|
||||
* that tokenize a programming language.
|
||||
|
@ -274,31 +274,31 @@ public abstract class BreakIterator implements Cloneable
|
|||
/**
|
||||
* Returns the nth boundary from the current boundary. If either
|
||||
* the first or last text boundary has been reached, it returns
|
||||
* <code>BreakIterator.DONE</code> and the current position is set to either
|
||||
* {@code BreakIterator.DONE} and the current position is set to either
|
||||
* the first or last text boundary depending on which one is reached. Otherwise,
|
||||
* the iterator's current position is set to the new boundary.
|
||||
* For example, if the iterator's current position is the mth text boundary
|
||||
* and three more boundaries exist from the current boundary to the last text
|
||||
* boundary, the next(2) call will return m + 2. The new text position is set
|
||||
* to the (m + 2)th text boundary. A next(4) call would return
|
||||
* <code>BreakIterator.DONE</code> and the last text boundary would become the
|
||||
* {@code BreakIterator.DONE} and the last text boundary would become the
|
||||
* new text position.
|
||||
* @param n which boundary to return. A value of 0
|
||||
* does nothing. Negative values move to previous boundaries
|
||||
* and positive values move to later boundaries.
|
||||
* @return The character index of the nth boundary from the current position
|
||||
* or <code>BreakIterator.DONE</code> if either first or last text boundary
|
||||
* or {@code BreakIterator.DONE} if either first or last text boundary
|
||||
* has been reached.
|
||||
*/
|
||||
public abstract int next(int n);
|
||||
|
||||
/**
|
||||
* Returns the boundary following the current boundary. If the current boundary
|
||||
* is the last text boundary, it returns <code>BreakIterator.DONE</code> and
|
||||
* is the last text boundary, it returns {@code BreakIterator.DONE} and
|
||||
* the iterator's current position is unchanged. Otherwise, the iterator's
|
||||
* current position is set to the boundary following the current boundary.
|
||||
* @return The character index of the next text boundary or
|
||||
* <code>BreakIterator.DONE</code> if the current boundary is the last text
|
||||
* {@code BreakIterator.DONE} if the current boundary is the last text
|
||||
* boundary.
|
||||
* Equivalent to next(1).
|
||||
* @see #next(int)
|
||||
|
@ -307,11 +307,11 @@ public abstract class BreakIterator implements Cloneable
|
|||
|
||||
/**
|
||||
* Returns the boundary preceding the current boundary. If the current boundary
|
||||
* is the first text boundary, it returns <code>BreakIterator.DONE</code> and
|
||||
* is the first text boundary, it returns {@code BreakIterator.DONE} and
|
||||
* the iterator's current position is unchanged. Otherwise, the iterator's
|
||||
* current position is set to the boundary preceding the current boundary.
|
||||
* @return The character index of the previous text boundary or
|
||||
* <code>BreakIterator.DONE</code> if the current boundary is the first text
|
||||
* {@code BreakIterator.DONE} if the current boundary is the first text
|
||||
* boundary.
|
||||
*/
|
||||
public abstract int previous();
|
||||
|
@ -319,13 +319,13 @@ public abstract class BreakIterator implements Cloneable
|
|||
/**
|
||||
* Returns the first boundary following the specified character offset. If the
|
||||
* specified offset equals to the last text boundary, it returns
|
||||
* <code>BreakIterator.DONE</code> and the iterator's current position is unchanged.
|
||||
* {@code BreakIterator.DONE} and the iterator's current position is unchanged.
|
||||
* Otherwise, the iterator's current position is set to the returned boundary.
|
||||
* The value returned is always greater than the offset or the value
|
||||
* <code>BreakIterator.DONE</code>.
|
||||
* {@code BreakIterator.DONE}.
|
||||
* @param offset the character offset to begin scanning.
|
||||
* @return The first boundary after the specified offset or
|
||||
* <code>BreakIterator.DONE</code> if the last text boundary is passed in
|
||||
* {@code BreakIterator.DONE} if the last text boundary is passed in
|
||||
* as the offset.
|
||||
* @throws IllegalArgumentException if the specified offset is less than
|
||||
* the first text boundary or greater than the last text boundary.
|
||||
|
@ -335,13 +335,13 @@ public abstract class BreakIterator implements Cloneable
|
|||
/**
|
||||
* Returns the last boundary preceding the specified character offset. If the
|
||||
* specified offset equals to the first text boundary, it returns
|
||||
* <code>BreakIterator.DONE</code> and the iterator's current position is unchanged.
|
||||
* {@code BreakIterator.DONE} and the iterator's current position is unchanged.
|
||||
* Otherwise, the iterator's current position is set to the returned boundary.
|
||||
* The value returned is always less than the offset or the value
|
||||
* <code>BreakIterator.DONE</code>.
|
||||
* {@code BreakIterator.DONE}.
|
||||
* @param offset the character offset to begin scanning.
|
||||
* @return The last boundary before the specified offset or
|
||||
* <code>BreakIterator.DONE</code> if the first text boundary is passed in
|
||||
* {@code BreakIterator.DONE} if the first text boundary is passed in
|
||||
* as the offset.
|
||||
* @throws IllegalArgumentException if the specified offset is less than
|
||||
* the first text boundary or greater than the last text boundary.
|
||||
|
@ -361,8 +361,8 @@ public abstract class BreakIterator implements Cloneable
|
|||
/**
|
||||
* Returns true if the specified character offset is a text boundary.
|
||||
* @param offset the character offset to check.
|
||||
* @return <code>true</code> if "offset" is a boundary position,
|
||||
* <code>false</code> otherwise.
|
||||
* @return {@code true} if "offset" is a boundary position,
|
||||
* {@code false} otherwise.
|
||||
* @throws IllegalArgumentException if the specified offset is less than
|
||||
* the first text boundary or greater than the last text boundary.
|
||||
* @since 1.2
|
||||
|
@ -390,7 +390,7 @@ public abstract class BreakIterator implements Cloneable
|
|||
* Returns character index of the text boundary that was most
|
||||
* recently returned by next(), next(int), previous(), first(), last(),
|
||||
* following(int) or preceding(int). If any of these methods returns
|
||||
* <code>BreakIterator.DONE</code> because either first or last text boundary
|
||||
* {@code BreakIterator.DONE} because either first or last text boundary
|
||||
* has been reached, it returns the first or last text boundary depending on
|
||||
* which one is reached.
|
||||
* @return The text boundary returned from the above methods, first or last
|
||||
|
@ -437,7 +437,7 @@ public abstract class BreakIterator implements Cloneable
|
|||
private static final SoftReference<BreakIteratorCache>[] iterCache = (SoftReference<BreakIteratorCache>[]) new SoftReference<?>[4];
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#word">word breaks</a>
|
||||
* for the {@linkplain Locale#getDefault() default locale}.
|
||||
* @return A break iterator for word breaks
|
||||
|
@ -448,12 +448,12 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#word">word breaks</a>
|
||||
* for the given locale.
|
||||
* @param locale the desired locale
|
||||
* @return A break iterator for word breaks
|
||||
* @throws NullPointerException if <code>locale</code> is null
|
||||
* @throws NullPointerException if {@code locale} is null
|
||||
*/
|
||||
public static BreakIterator getWordInstance(Locale locale)
|
||||
{
|
||||
|
@ -461,7 +461,7 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#line">line breaks</a>
|
||||
* for the {@linkplain Locale#getDefault() default locale}.
|
||||
* @return A break iterator for line breaks
|
||||
|
@ -472,12 +472,12 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#line">line breaks</a>
|
||||
* for the given locale.
|
||||
* @param locale the desired locale
|
||||
* @return A break iterator for line breaks
|
||||
* @throws NullPointerException if <code>locale</code> is null
|
||||
* @throws NullPointerException if {@code locale} is null
|
||||
*/
|
||||
public static BreakIterator getLineInstance(Locale locale)
|
||||
{
|
||||
|
@ -485,7 +485,7 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#character">character breaks</a>
|
||||
* for the {@linkplain Locale#getDefault() default locale}.
|
||||
* @return A break iterator for character breaks
|
||||
|
@ -496,12 +496,12 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#character">character breaks</a>
|
||||
* for the given locale.
|
||||
* @param locale the desired locale
|
||||
* @return A break iterator for character breaks
|
||||
* @throws NullPointerException if <code>locale</code> is null
|
||||
* @throws NullPointerException if {@code locale} is null
|
||||
*/
|
||||
public static BreakIterator getCharacterInstance(Locale locale)
|
||||
{
|
||||
|
@ -509,7 +509,7 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#sentence">sentence breaks</a>
|
||||
* for the {@linkplain Locale#getDefault() default locale}.
|
||||
* @return A break iterator for sentence breaks
|
||||
|
@ -520,12 +520,12 @@ public abstract class BreakIterator implements Cloneable
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns a new <code>BreakIterator</code> instance
|
||||
* Returns a new {@code BreakIterator} instance
|
||||
* for <a href="BreakIterator.html#sentence">sentence breaks</a>
|
||||
* for the given locale.
|
||||
* @param locale the desired locale
|
||||
* @return A break iterator for sentence breaks
|
||||
* @throws NullPointerException if <code>locale</code> is null
|
||||
* @throws NullPointerException if {@code locale} is null
|
||||
*/
|
||||
public static BreakIterator getSentenceInstance(Locale locale)
|
||||
{
|
||||
|
@ -580,16 +580,16 @@ public abstract class BreakIterator implements Cloneable
|
|||
|
||||
/**
|
||||
* Returns an array of all locales for which the
|
||||
* <code>get*Instance</code> methods of this class can return
|
||||
* {@code get*Instance} methods of this class can return
|
||||
* localized instances.
|
||||
* The returned array represents the union of locales supported by the Java
|
||||
* runtime and by installed
|
||||
* {@link java.text.spi.BreakIteratorProvider BreakIteratorProvider} implementations.
|
||||
* It must contain at least a <code>Locale</code>
|
||||
* It must contain at least a {@code Locale}
|
||||
* instance equal to {@link java.util.Locale#US Locale.US}.
|
||||
*
|
||||
* @return An array of locales for which localized
|
||||
* <code>BreakIterator</code> instances are available.
|
||||
* {@code BreakIterator} instances are available.
|
||||
*/
|
||||
public static synchronized Locale[] getAvailableLocales()
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue