mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8179364: update "<a name=" in java.base module to use id attribute
Reviewed-by: darcy
This commit is contained in:
parent
f0d6ffcccc
commit
1838d55322
58 changed files with 182 additions and 182 deletions
|
@ -48,7 +48,7 @@ package java.io;
|
||||||
* may be thrown if the input stream has been
|
* may be thrown if the input stream has been
|
||||||
* closed.
|
* closed.
|
||||||
*
|
*
|
||||||
* <h3><a name="modified-utf-8">Modified UTF-8</a></h3>
|
* <h3><a id="modified-utf-8">Modified UTF-8</a></h3>
|
||||||
* <p>
|
* <p>
|
||||||
* Implementations of the DataInput and DataOutput interfaces represent
|
* Implementations of the DataInput and DataOutput interfaces represent
|
||||||
* Unicode strings in a format that is a slight modification of UTF-8.
|
* Unicode strings in a format that is a slight modification of UTF-8.
|
||||||
|
|
|
@ -113,7 +113,7 @@ import sun.security.action.GetPropertyAction;
|
||||||
* operating system-specific portion of storage for a file system. A single
|
* operating system-specific portion of storage for a file system. A single
|
||||||
* storage device (e.g. a physical disk-drive, flash memory, CD-ROM) may
|
* storage device (e.g. a physical disk-drive, flash memory, CD-ROM) may
|
||||||
* contain multiple partitions. The object, if any, will reside on the
|
* contain multiple partitions. The object, if any, will reside on the
|
||||||
* partition <a name="partName">named</a> by some ancestor of the absolute
|
* partition <a id="partName">named</a> by some ancestor of the absolute
|
||||||
* form of this pathname.
|
* form of this pathname.
|
||||||
*
|
*
|
||||||
* <p> A file system may implement restrictions to certain operations on the
|
* <p> A file system may implement restrictions to certain operations on the
|
||||||
|
|
|
@ -39,7 +39,7 @@ package java.io;
|
||||||
* the stream; it only changes the value that will be returned by
|
* the stream; it only changes the value that will be returned by
|
||||||
* {@code getLineNumber()}.
|
* {@code getLineNumber()}.
|
||||||
*
|
*
|
||||||
* <p> A line is considered to be <a name="lt">terminated</a> by any one of a
|
* <p> A line is considered to be <a id="lt">terminated</a> by any one of a
|
||||||
* line feed ('\n'), a carriage return ('\r'), or a carriage return followed
|
* line feed ('\n'), a carriage return ('\r'), or a carriage return followed
|
||||||
* immediately by a linefeed.
|
* immediately by a linefeed.
|
||||||
*
|
*
|
||||||
|
|
|
@ -39,7 +39,7 @@ package java.io;
|
||||||
* The piped input stream contains a buffer,
|
* The piped input stream contains a buffer,
|
||||||
* decoupling read operations from write operations,
|
* decoupling read operations from write operations,
|
||||||
* within limits.
|
* within limits.
|
||||||
* A pipe is said to be <a name="BROKEN"> <i>broken</i> </a> if a
|
* A pipe is said to be <a id="BROKEN"> <i>broken</i> </a> if a
|
||||||
* thread that was providing data bytes to the connected
|
* thread that was providing data bytes to the connected
|
||||||
* piped output stream is no longer alive.
|
* piped output stream is no longer alive.
|
||||||
*
|
*
|
||||||
|
|
|
@ -35,7 +35,7 @@ import java.io.*;
|
||||||
* read from the connected <code>PipedInputStream</code> by some
|
* read from the connected <code>PipedInputStream</code> by some
|
||||||
* other thread. Attempting to use both objects from a single thread
|
* other thread. Attempting to use both objects from a single thread
|
||||||
* is not recommended as it may deadlock the thread.
|
* is not recommended as it may deadlock the thread.
|
||||||
* The pipe is said to be <a name=BROKEN> <i>broken</i> </a> if a
|
* The pipe is said to be <a id=BROKEN> <i>broken</i> </a> if a
|
||||||
* thread that was reading data bytes from the connected piped input
|
* thread that was reading data bytes from the connected piped input
|
||||||
* stream is no longer alive.
|
* stream is no longer alive.
|
||||||
*
|
*
|
||||||
|
|
|
@ -132,7 +132,7 @@ public class RandomAccessFile implements DataOutput, DataInput, Closeable {
|
||||||
* write to, the file specified by the {@link File} argument. A new {@link
|
* write to, the file specified by the {@link File} argument. A new {@link
|
||||||
* FileDescriptor} object is created to represent this file connection.
|
* FileDescriptor} object is created to represent this file connection.
|
||||||
*
|
*
|
||||||
* <p>The <a name="mode">{@code mode}</a> argument specifies the access mode
|
* <p>The <a id="mode">{@code mode}</a> argument specifies the access mode
|
||||||
* in which the file is to be opened. The permitted values and their
|
* in which the file is to be opened. The permitted values and their
|
||||||
* meanings are:
|
* meanings are:
|
||||||
*
|
*
|
||||||
|
|
|
@ -56,7 +56,7 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
||||||
* <li><a href="http://www.unicode.org">http://www.unicode.org</a>
|
* <li><a href="http://www.unicode.org">http://www.unicode.org</a>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h3><a name="unicode">Unicode Character Representations</a></h3>
|
* <h3><a id="unicode">Unicode Character Representations</a></h3>
|
||||||
*
|
*
|
||||||
* <p>The {@code char} data type (and therefore the value that a
|
* <p>The {@code char} data type (and therefore the value that a
|
||||||
* {@code Character} object encapsulates) are based on the
|
* {@code Character} object encapsulates) are based on the
|
||||||
|
@ -70,9 +70,9 @@ import jdk.internal.HotSpotIntrinsicCandidate;
|
||||||
* definition</i></a> of the U+<i>n</i> notation in the Unicode
|
* definition</i></a> of the U+<i>n</i> notation in the Unicode
|
||||||
* Standard.)
|
* Standard.)
|
||||||
*
|
*
|
||||||
* <p><a name="BMP">The set of characters from U+0000 to U+FFFF</a> is
|
* <p><a id="BMP">The set of characters from U+0000 to U+FFFF</a> is
|
||||||
* sometimes referred to as the <em>Basic Multilingual Plane (BMP)</em>.
|
* sometimes referred to as the <em>Basic Multilingual Plane (BMP)</em>.
|
||||||
* <a name="supplementary">Characters</a> whose code points are greater
|
* <a id="supplementary">Characters</a> whose code points are greater
|
||||||
* than U+FFFF are called <em>supplementary character</em>s. The Java
|
* than U+FFFF are called <em>supplementary character</em>s. The Java
|
||||||
* platform uses the UTF-16 representation in {@code char} arrays and
|
* platform uses the UTF-16 representation in {@code char} arrays and
|
||||||
* in the {@code String} and {@code StringBuffer} classes. In
|
* in the {@code String} and {@code StringBuffer} classes. In
|
||||||
|
|
|
@ -114,7 +114,7 @@ import sun.security.util.SecurityConstants;
|
||||||
* duration of the class loading process (see {@link #loadClass
|
* duration of the class loading process (see {@link #loadClass
|
||||||
* loadClass} methods).
|
* loadClass} methods).
|
||||||
*
|
*
|
||||||
* <h3> <a name="builtinLoaders">Run-time Built-in Class Loaders</a></h3>
|
* <h3> <a id="builtinLoaders">Run-time Built-in Class Loaders</a></h3>
|
||||||
*
|
*
|
||||||
* The Java run-time has the following built-in class loaders:
|
* The Java run-time has the following built-in class loaders:
|
||||||
*
|
*
|
||||||
|
@ -183,7 +183,7 @@ import sun.security.util.SecurityConstants;
|
||||||
* }
|
* }
|
||||||
* </pre></blockquote>
|
* </pre></blockquote>
|
||||||
*
|
*
|
||||||
* <h3> <a name="name">Binary names</a> </h3>
|
* <h3> <a id="name">Binary names</a> </h3>
|
||||||
*
|
*
|
||||||
* <p> Any class name provided as a {@code String} parameter to methods in
|
* <p> Any class name provided as a {@code String} parameter to methods in
|
||||||
* {@code ClassLoader} must be a binary name as defined by
|
* {@code ClassLoader} must be a binary name as defined by
|
||||||
|
|
|
@ -71,7 +71,7 @@ import sun.security.action.GetPropertyAction;
|
||||||
* working directory of the current process, usually the directory
|
* working directory of the current process, usually the directory
|
||||||
* named by the system property {@code user.dir}.
|
* named by the system property {@code user.dir}.
|
||||||
*
|
*
|
||||||
* <li><a name="redirect-input">a source of <i>standard input</i></a>.
|
* <li><a id="redirect-input">a source of <i>standard input</i></a>.
|
||||||
* By default, the subprocess reads input from a pipe. Java code
|
* By default, the subprocess reads input from a pipe. Java code
|
||||||
* can access this pipe via the output stream returned by
|
* can access this pipe via the output stream returned by
|
||||||
* {@link Process#getOutputStream()}. However, standard input may
|
* {@link Process#getOutputStream()}. However, standard input may
|
||||||
|
@ -86,7 +86,7 @@ import sun.security.action.GetPropertyAction;
|
||||||
* <li>the {@link OutputStream#close() close} method does nothing
|
* <li>the {@link OutputStream#close() close} method does nothing
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <li><a name="redirect-output">a destination for <i>standard output</i>
|
* <li><a id="redirect-output">a destination for <i>standard output</i>
|
||||||
* and <i>standard error</i></a>. By default, the subprocess writes standard
|
* and <i>standard error</i></a>. By default, the subprocess writes standard
|
||||||
* output and standard error to pipes. Java code can access these pipes
|
* output and standard error to pipes. Java code can access these pipes
|
||||||
* via the input streams returned by {@link Process#getOutputStream()} and
|
* via the input streams returned by {@link Process#getOutputStream()} and
|
||||||
|
|
|
@ -950,7 +950,7 @@ public class Runtime {
|
||||||
* Java SE Platform. A version string consists of a version number
|
* Java SE Platform. A version string consists of a version number
|
||||||
* optionally followed by pre-release and build information.
|
* optionally followed by pre-release and build information.
|
||||||
*
|
*
|
||||||
* <h2><a name="verNum">Version numbers</a></h2>
|
* <h2><a id="verNum">Version numbers</a></h2>
|
||||||
*
|
*
|
||||||
* <p> A <em>version number</em>, {@code $VNUM}, is a non-empty sequence
|
* <p> A <em>version number</em>, {@code $VNUM}, is a non-empty sequence
|
||||||
* of elements separated by period characters (U+002E). An element is
|
* of elements separated by period characters (U+002E). An element is
|
||||||
|
@ -971,7 +971,7 @@ public class Runtime {
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
*
|
*
|
||||||
* <li><p> <a name="major">{@code $MAJOR}</a> --- The major version
|
* <li><p> <a id="major">{@code $MAJOR}</a> --- The major version
|
||||||
* number, incremented for a major release that contains significant new
|
* number, incremented for a major release that contains significant new
|
||||||
* features as specified in a new edition of the Java SE Platform
|
* features as specified in a new edition of the Java SE Platform
|
||||||
* Specification, <em>e.g.</em>, <a
|
* Specification, <em>e.g.</em>, <a
|
||||||
|
@ -983,7 +983,7 @@ public class Runtime {
|
||||||
* number of JDK 9 is {@code 9}. When {@code $MAJOR} is incremented,
|
* number of JDK 9 is {@code 9}. When {@code $MAJOR} is incremented,
|
||||||
* all subsequent elements are removed. </p></li>
|
* all subsequent elements are removed. </p></li>
|
||||||
*
|
*
|
||||||
* <li><p> <a name="minor">{@code $MINOR}</a> --- The minor version
|
* <li><p> <a id="minor">{@code $MINOR}</a> --- The minor version
|
||||||
* number, incremented for a minor update release that may contain
|
* number, incremented for a minor update release that may contain
|
||||||
* compatible bug fixes, revisions to standard APIs mandated by a
|
* compatible bug fixes, revisions to standard APIs mandated by a
|
||||||
* <a href="https://jcp.org/en/procedures/jcp2#5.3">Maintenance Release</a>
|
* <a href="https://jcp.org/en/procedures/jcp2#5.3">Maintenance Release</a>
|
||||||
|
@ -992,7 +992,7 @@ public class Runtime {
|
||||||
* additional service providers, new garbage collectors, and ports to new
|
* additional service providers, new garbage collectors, and ports to new
|
||||||
* hardware architectures. </p></li>
|
* hardware architectures. </p></li>
|
||||||
*
|
*
|
||||||
* <li><p> <a name="security">{@code $SECURITY}</a> --- The security
|
* <li><p> <a id="security">{@code $SECURITY}</a> --- The security
|
||||||
* level, incremented for a security update release that contains critical
|
* level, incremented for a security update release that contains critical
|
||||||
* fixes including those necessary to improve security. {@code $SECURITY}
|
* fixes including those necessary to improve security. {@code $SECURITY}
|
||||||
* is <strong>not</strong> reset when {@code $MINOR} is incremented. A
|
* is <strong>not</strong> reset when {@code $MINOR} is incremented. A
|
||||||
|
@ -1021,7 +1021,7 @@ public class Runtime {
|
||||||
* sequence; <em>e.g.</em>, {@code 9.1.2} is less than {@code 9.1.2.1}.
|
* sequence; <em>e.g.</em>, {@code 9.1.2} is less than {@code 9.1.2.1}.
|
||||||
* </p>
|
* </p>
|
||||||
*
|
*
|
||||||
* <h2><a name="verStr">Version strings</a></h2>
|
* <h2><a id="verStr">Version strings</a></h2>
|
||||||
*
|
*
|
||||||
* <p> A <em>version string</em>, {@code $VSTR}, consists of a version
|
* <p> A <em>version string</em>, {@code $VSTR}, consists of a version
|
||||||
* number {@code $VNUM}, as described above, optionally followed by
|
* number {@code $VNUM}, as described above, optionally followed by
|
||||||
|
@ -1038,17 +1038,17 @@ public class Runtime {
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
*
|
*
|
||||||
* <li><p> <a name="pre">{@code $PRE}</a>, matching {@code ([a-zA-Z0-9]+)}
|
* <li><p> <a id="pre">{@code $PRE}</a>, matching {@code ([a-zA-Z0-9]+)}
|
||||||
* --- A pre-release identifier. Typically {@code ea}, for a
|
* --- A pre-release identifier. Typically {@code ea}, for a
|
||||||
* potentially unstable early-access release under active development,
|
* potentially unstable early-access release under active development,
|
||||||
* or {@code internal}, for an internal developer build. </p></li>
|
* or {@code internal}, for an internal developer build. </p></li>
|
||||||
*
|
*
|
||||||
* <li><p> <a name="build">{@code $BUILD}</a>, matching {@code
|
* <li><p> <a id="build">{@code $BUILD}</a>, matching {@code
|
||||||
* (0|[1-9][0-9]*)} --- The build number, incremented for each promoted
|
* (0|[1-9][0-9]*)} --- The build number, incremented for each promoted
|
||||||
* build. {@code $BUILD} is reset to {@code 1} when any portion of {@code
|
* build. {@code $BUILD} is reset to {@code 1} when any portion of {@code
|
||||||
* $VNUM} is incremented. </p></li>
|
* $VNUM} is incremented. </p></li>
|
||||||
*
|
*
|
||||||
* <li><p> <a name="opt">{@code $OPT}</a>, matching {@code
|
* <li><p> <a id="opt">{@code $OPT}</a>, matching {@code
|
||||||
* ([-a-zA-Z0-9.]+)} --- Additional build information, if desired. In
|
* ([-a-zA-Z0-9.]+)} --- Additional build information, if desired. In
|
||||||
* the case of an {@code internal} build this will often contain the date
|
* the case of an {@code internal} build this will often contain the date
|
||||||
* and time of the build. </p></li>
|
* and time of the build. </p></li>
|
||||||
|
|
|
@ -899,7 +899,7 @@ public final class System {
|
||||||
* being thrown. If no exception is thrown the value of the
|
* being thrown. If no exception is thrown the value of the
|
||||||
* variable <code>name</code> is returned.
|
* variable <code>name</code> is returned.
|
||||||
*
|
*
|
||||||
* <p><a name="EnvironmentVSSystemProperties"><i>System
|
* <p><a id="EnvironmentVSSystemProperties"><i>System
|
||||||
* properties</i> and <i>environment variables</i></a> are both
|
* properties</i> and <i>environment variables</i></a> are both
|
||||||
* conceptually mappings between names and values. Both
|
* conceptually mappings between names and values. Both
|
||||||
* mechanisms can be used to pass user-defined information to a
|
* mechanisms can be used to pass user-defined information to a
|
||||||
|
|
|
@ -310,7 +310,7 @@ mh.invokeExact(System.out, "Hello, world.");
|
||||||
* throwables locally, rethrowing only those which are legal in the context,
|
* throwables locally, rethrowing only those which are legal in the context,
|
||||||
* and wrapping ones which are illegal.
|
* and wrapping ones which are illegal.
|
||||||
*
|
*
|
||||||
* <h1><a name="sigpoly"></a>Signature polymorphism</h1>
|
* <h1><a id="sigpoly"></a>Signature polymorphism</h1>
|
||||||
* The unusual compilation and linkage behavior of
|
* The unusual compilation and linkage behavior of
|
||||||
* {@code invokeExact} and plain {@code invoke}
|
* {@code invokeExact} and plain {@code invoke}
|
||||||
* is referenced by the term <em>signature polymorphism</em>.
|
* is referenced by the term <em>signature polymorphism</em>.
|
||||||
|
@ -404,7 +404,7 @@ mh.invokeExact(System.out, "Hello, world.");
|
||||||
* genericity with a Java type parameter.</li>
|
* genericity with a Java type parameter.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h1><a name="maxarity"></a>Arity limits</h1>
|
* <h1><a id="maxarity"></a>Arity limits</h1>
|
||||||
* The JVM imposes on all methods and constructors of any kind an absolute
|
* The JVM imposes on all methods and constructors of any kind an absolute
|
||||||
* limit of 255 stacked arguments. This limit can appear more restrictive
|
* limit of 255 stacked arguments. This limit can appear more restrictive
|
||||||
* in certain cases:
|
* in certain cases:
|
||||||
|
|
|
@ -35,7 +35,7 @@ import static java.lang.invoke.MethodHandleStatics.*;
|
||||||
* A symbolic reference obtained by cracking a direct method handle
|
* A symbolic reference obtained by cracking a direct method handle
|
||||||
* into its consitutent symbolic parts.
|
* into its consitutent symbolic parts.
|
||||||
* To crack a direct method handle, call {@link Lookup#revealDirect Lookup.revealDirect}.
|
* To crack a direct method handle, call {@link Lookup#revealDirect Lookup.revealDirect}.
|
||||||
* <h1><a name="directmh"></a>Direct Method Handles</h1>
|
* <h1><a id="directmh"></a>Direct Method Handles</h1>
|
||||||
* A <em>direct method handle</em> represents a method, constructor, or field without
|
* A <em>direct method handle</em> represents a method, constructor, or field without
|
||||||
* any intervening argument bindings or other transformations.
|
* any intervening argument bindings or other transformations.
|
||||||
* The method, constructor, or field referred to by a direct method handle is called
|
* The method, constructor, or field referred to by a direct method handle is called
|
||||||
|
@ -77,7 +77,7 @@ import static java.lang.invoke.MethodHandleStatics.*;
|
||||||
* handle with symbolic information (or caller binding) from an unexpected scope.
|
* handle with symbolic information (or caller binding) from an unexpected scope.
|
||||||
* Use {@link java.lang.invoke.MethodHandles#reflectAs} to override this limitation.
|
* Use {@link java.lang.invoke.MethodHandles#reflectAs} to override this limitation.
|
||||||
*
|
*
|
||||||
* <h1><a name="refkinds"></a>Reference kinds</h1>
|
* <h1><a id="refkinds"></a>Reference kinds</h1>
|
||||||
* The <a href="MethodHandles.Lookup.html#lookups">Lookup Factory Methods</a>
|
* The <a href="MethodHandles.Lookup.html#lookups">Lookup Factory Methods</a>
|
||||||
* correspond to all major use cases for methods, constructors, and fields.
|
* correspond to all major use cases for methods, constructors, and fields.
|
||||||
* These use cases may be distinguished using small integers as follows:
|
* These use cases may be distinguished using small integers as follows:
|
||||||
|
|
|
@ -257,7 +257,7 @@ public class MethodHandles {
|
||||||
* This includes all methods, constructors, and fields which are allowed to the lookup class,
|
* This includes all methods, constructors, and fields which are allowed to the lookup class,
|
||||||
* even private ones.
|
* even private ones.
|
||||||
*
|
*
|
||||||
* <h1><a name="lookups"></a>Lookup Factory Methods</h1>
|
* <h1><a id="lookups"></a>Lookup Factory Methods</h1>
|
||||||
* The factory methods on a {@code Lookup} object correspond to all major
|
* The factory methods on a {@code Lookup} object correspond to all major
|
||||||
* use cases for methods, constructors, and fields.
|
* use cases for methods, constructors, and fields.
|
||||||
* Each method handle created by a factory method is the functional
|
* Each method handle created by a factory method is the functional
|
||||||
|
@ -267,7 +267,7 @@ public class MethodHandles {
|
||||||
* the behavior of the resulting method handles:
|
* the behavior of the resulting method handles:
|
||||||
* <table border=1 cellpadding=5 summary="lookup method behaviors">
|
* <table border=1 cellpadding=5 summary="lookup method behaviors">
|
||||||
* <tr>
|
* <tr>
|
||||||
* <th><a name="equiv"></a>lookup expression</th>
|
* <th><a id="equiv"></a>lookup expression</th>
|
||||||
* <th>member</th>
|
* <th>member</th>
|
||||||
* <th>bytecode behavior</th>
|
* <th>bytecode behavior</th>
|
||||||
* </tr>
|
* </tr>
|
||||||
|
@ -378,7 +378,7 @@ public class MethodHandles {
|
||||||
* type having too many parameters.
|
* type having too many parameters.
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h1><a name="access"></a>Access checking</h1>
|
* <h1><a id="access"></a>Access checking</h1>
|
||||||
* Access checks are applied in the factory methods of {@code Lookup},
|
* Access checks are applied in the factory methods of {@code Lookup},
|
||||||
* when a method handle is created.
|
* when a method handle is created.
|
||||||
* This is a key difference from the Core Reflection API, since
|
* This is a key difference from the Core Reflection API, since
|
||||||
|
@ -483,7 +483,7 @@ public class MethodHandles {
|
||||||
* with fewer access modes than the original lookup object.
|
* with fewer access modes than the original lookup object.
|
||||||
*
|
*
|
||||||
* <p style="font-size:smaller;">
|
* <p style="font-size:smaller;">
|
||||||
* <a name="privacc"></a>
|
* <a id="privacc"></a>
|
||||||
* <em>Discussion of private access:</em>
|
* <em>Discussion of private access:</em>
|
||||||
* We say that a lookup has <em>private access</em>
|
* We say that a lookup has <em>private access</em>
|
||||||
* if its {@linkplain #lookupModes lookup modes}
|
* if its {@linkplain #lookupModes lookup modes}
|
||||||
|
@ -506,7 +506,7 @@ public class MethodHandles {
|
||||||
* whose <a href="MethodHandles.Lookup.html#equiv">bytecode behaviors</a> and Java language access permissions
|
* whose <a href="MethodHandles.Lookup.html#equiv">bytecode behaviors</a> and Java language access permissions
|
||||||
* can be reliably determined and emulated by method handles.
|
* can be reliably determined and emulated by method handles.
|
||||||
*
|
*
|
||||||
* <h1><a name="secmgr"></a>Security manager interactions</h1>
|
* <h1><a id="secmgr"></a>Security manager interactions</h1>
|
||||||
* Although bytecode instructions can only refer to classes in
|
* Although bytecode instructions can only refer to classes in
|
||||||
* a related class loader, this API can search for methods in any
|
* a related class loader, this API can search for methods in any
|
||||||
* class, as long as a reference to its {@code Class} object is
|
* class, as long as a reference to its {@code Class} object is
|
||||||
|
@ -565,7 +565,7 @@ public class MethodHandles {
|
||||||
* or else that is being accessed from a lookup class that has
|
* or else that is being accessed from a lookup class that has
|
||||||
* rights to access the member or class.
|
* rights to access the member or class.
|
||||||
*
|
*
|
||||||
* <h1><a name="callsens"></a>Caller sensitive methods</h1>
|
* <h1><a id="callsens"></a>Caller sensitive methods</h1>
|
||||||
* A small number of Java methods have a special property called caller sensitivity.
|
* A small number of Java methods have a special property called caller sensitivity.
|
||||||
* A <em>caller-sensitive</em> method can behave differently depending on the
|
* A <em>caller-sensitive</em> method can behave differently depending on the
|
||||||
* identity of its immediate caller.
|
* identity of its immediate caller.
|
||||||
|
@ -4497,7 +4497,7 @@ assertEquals("boojum", (String) catTrace.invokeExact("boo", "jum"));
|
||||||
* The init functions can observe initial pre-loop state, in the form {@code (a...)}.
|
* The init functions can observe initial pre-loop state, in the form {@code (a...)}.
|
||||||
* Most clause functions will not need all of this information, but they will be formally connected to it
|
* Most clause functions will not need all of this information, but they will be formally connected to it
|
||||||
* as if by {@link #dropArguments}.
|
* as if by {@link #dropArguments}.
|
||||||
* <a name="astar"></a>
|
* <a id="astar"></a>
|
||||||
* More specifically, we shall use the notation {@code (V*)} to express an arbitrary prefix of a full
|
* More specifically, we shall use the notation {@code (V*)} to express an arbitrary prefix of a full
|
||||||
* sequence {@code (V...)} (and likewise for {@code (v*)}, {@code (A*)}, {@code (a*)}).
|
* sequence {@code (V...)} (and likewise for {@code (v*)}, {@code (A*)}, {@code (a*)}).
|
||||||
* In that notation, the general form of an init function parameter list
|
* In that notation, the general form of an init function parameter list
|
||||||
|
@ -4510,7 +4510,7 @@ assertEquals("boojum", (String) catTrace.invokeExact("boo", "jum"));
|
||||||
* met by the inputs to the loop combinator.
|
* met by the inputs to the loop combinator.
|
||||||
* <p>
|
* <p>
|
||||||
* <em>Effectively identical sequences:</em>
|
* <em>Effectively identical sequences:</em>
|
||||||
* <a name="effid"></a>
|
* <a id="effid"></a>
|
||||||
* A parameter list {@code A} is defined to be <em>effectively identical</em> to another parameter list {@code B}
|
* A parameter list {@code A} is defined to be <em>effectively identical</em> to another parameter list {@code B}
|
||||||
* if {@code A} and {@code B} are identical, or if {@code A} is shorter and is identical with a proper prefix of {@code B}.
|
* if {@code A} and {@code B} are identical, or if {@code A} is shorter and is identical with a proper prefix of {@code B}.
|
||||||
* When speaking of an unordered set of parameter lists, we say they the set is "effectively identical"
|
* When speaking of an unordered set of parameter lists, we say they the set is "effectively identical"
|
||||||
|
|
|
@ -247,7 +247,7 @@ import static java.lang.invoke.MethodHandleStatics.newInternalError;
|
||||||
* except the null reference.
|
* except the null reference.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <h1><a name="invoke">Invocation of an access mode's method</a></h1>
|
* <h1><a id="invoke">Invocation of an access mode's method</a></h1>
|
||||||
* The first time an {@code invokevirtual} instruction is executed it is linked
|
* The first time an {@code invokevirtual} instruction is executed it is linked
|
||||||
* by symbolically resolving the names in the instruction and verifying that
|
* by symbolically resolving the names in the instruction and verifying that
|
||||||
* the method call is statically legal. This also holds for calls to access mode
|
* the method call is statically legal. This also holds for calls to access mode
|
||||||
|
|
|
@ -119,7 +119,7 @@ import java.util.function.Function;
|
||||||
* Using a static nested class, as above, will avoid accidentally retaining the
|
* Using a static nested class, as above, will avoid accidentally retaining the
|
||||||
* object reference.
|
* object reference.
|
||||||
* <p>
|
* <p>
|
||||||
* <a name="compatible-cleaners"></a>
|
* <a id="compatible-cleaners"></a>
|
||||||
* Cleaning actions should be prepared to be invoked concurrently with
|
* Cleaning actions should be prepared to be invoked concurrently with
|
||||||
* other cleaning actions.
|
* other cleaning actions.
|
||||||
* Typically the cleaning actions should be very quick to execute
|
* Typically the cleaning actions should be very quick to execute
|
||||||
|
|
|
@ -93,7 +93,7 @@
|
||||||
* structure, this check will add little overhead to the hashtable
|
* structure, this check will add little overhead to the hashtable
|
||||||
* access methods.
|
* access methods.
|
||||||
*
|
*
|
||||||
* <a name="reachability"></a>
|
* <a id="reachability"></a>
|
||||||
* <h3>Reachability</h3>
|
* <h3>Reachability</h3>
|
||||||
*
|
*
|
||||||
* Going from strongest to weakest, the different levels of
|
* Going from strongest to weakest, the different levels of
|
||||||
|
|
|
@ -157,7 +157,7 @@ import static java.lang.module.ModuleDescriptor.Modifier.SYNTHETIC;
|
||||||
* like they do for instances of {@code java.lang.Object}.
|
* like they do for instances of {@code java.lang.Object}.
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h3><a name="membership">Package and Module Membership of Proxy Class</a></h3>
|
* <h3><a id="membership">Package and Module Membership of Proxy Class</a></h3>
|
||||||
*
|
*
|
||||||
* The package and module to which a proxy class belongs are chosen such that
|
* The package and module to which a proxy class belongs are chosen such that
|
||||||
* the accessibility of the proxy class is in line with the accessibility of
|
* the accessibility of the proxy class is in line with the accessibility of
|
||||||
|
@ -218,7 +218,7 @@ import static java.lang.module.ModuleDescriptor.Modifier.SYNTHETIC;
|
||||||
* a package that either is not exported/open by its containing module or is
|
* a package that either is not exported/open by its containing module or is
|
||||||
* exported/open in a qualified fashion by its containing module.
|
* exported/open in a qualified fashion by its containing module.
|
||||||
*
|
*
|
||||||
* <h3><a name="dynamicmodule">Dynamic Modules</a></h3>
|
* <h3><a id="dynamicmodule">Dynamic Modules</a></h3>
|
||||||
* <p>
|
* <p>
|
||||||
* A dynamic module is a named module generated at runtime. A proxy class
|
* A dynamic module is a named module generated at runtime. A proxy class
|
||||||
* defined in a dynamic module is encapsulated and not accessible to any module.
|
* defined in a dynamic module is encapsulated and not accessible to any module.
|
||||||
|
@ -894,7 +894,7 @@ public class Proxy implements java.io.Serializable {
|
||||||
* that dispatches method invocations to the specified invocation
|
* that dispatches method invocations to the specified invocation
|
||||||
* handler.
|
* handler.
|
||||||
* <p>
|
* <p>
|
||||||
* <a name="restrictions">{@code IllegalArgumentException} will be thrown
|
* <a id="restrictions">{@code IllegalArgumentException} will be thrown
|
||||||
* if any of the following restrictions is violated:</a>
|
* if any of the following restrictions is violated:</a>
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li>All of {@code Class} objects in the given {@code interfaces} array
|
* <li>All of {@code Class} objects in the given {@code interfaces} array
|
||||||
|
|
|
@ -36,7 +36,7 @@ import java.io.ObjectStreamException;
|
||||||
* and <a href="http://www.ietf.org/rfc/rfc2365.txt"><i>RFC 2365:
|
* and <a href="http://www.ietf.org/rfc/rfc2365.txt"><i>RFC 2365:
|
||||||
* Administratively Scoped IP Multicast</i></a>
|
* Administratively Scoped IP Multicast</i></a>
|
||||||
*
|
*
|
||||||
* <h3> <A NAME="format">Textual representation of IP addresses</a> </h3>
|
* <h3> <a id="format">Textual representation of IP addresses</a> </h3>
|
||||||
*
|
*
|
||||||
* Textual representation of IPv4 address used as input to methods
|
* Textual representation of IPv4 address used as input to methods
|
||||||
* takes one of the following forms:
|
* takes one of the following forms:
|
||||||
|
|
|
@ -38,13 +38,13 @@ import java.util.Arrays;
|
||||||
* Defined by <a href="http://www.ietf.org/rfc/rfc2373.txt">
|
* Defined by <a href="http://www.ietf.org/rfc/rfc2373.txt">
|
||||||
* <i>RFC 2373: IP Version 6 Addressing Architecture</i></a>.
|
* <i>RFC 2373: IP Version 6 Addressing Architecture</i></a>.
|
||||||
*
|
*
|
||||||
* <h3> <A NAME="format">Textual representation of IP addresses</a> </h3>
|
* <h3> <a id="format">Textual representation of IP addresses</a> </h3>
|
||||||
*
|
*
|
||||||
* Textual representation of IPv6 address used as input to methods
|
* Textual representation of IPv6 address used as input to methods
|
||||||
* takes one of the following forms:
|
* takes one of the following forms:
|
||||||
*
|
*
|
||||||
* <ol>
|
* <ol>
|
||||||
* <li><p> <A NAME="lform">The preferred form</a> is x:x:x:x:x:x:x:x,
|
* <li><p> <a id="lform">The preferred form</a> is x:x:x:x:x:x:x:x,
|
||||||
* where the 'x's are
|
* where the 'x's are
|
||||||
* the hexadecimal values of the eight 16-bit pieces of the
|
* the hexadecimal values of the eight 16-bit pieces of the
|
||||||
* address. This is the full form. For example,
|
* address. This is the full form. For example,
|
||||||
|
@ -134,7 +134,7 @@ import java.util.Arrays;
|
||||||
* address.</td></tr>
|
* address.</td></tr>
|
||||||
* </table></blockquote>
|
* </table></blockquote>
|
||||||
*
|
*
|
||||||
* <h4><A NAME="scoped">Textual representation of IPv6 scoped addresses</a></h4>
|
* <h4><a id="scoped">Textual representation of IPv6 scoped addresses</a></h4>
|
||||||
*
|
*
|
||||||
* <p> The textual representation of IPv6 addresses as described above can be
|
* <p> The textual representation of IPv6 addresses as described above can be
|
||||||
* extended to specify IPv6 scoped addresses. This extension to the basic
|
* extended to specify IPv6 scoped addresses. This extension to the basic
|
||||||
|
|
|
@ -281,7 +281,7 @@ import java.lang.NullPointerException; // for javadoc
|
||||||
* limited to US-ASCII)</i></td></tr>
|
* limited to US-ASCII)</i></td></tr>
|
||||||
* </table></blockquote>
|
* </table></blockquote>
|
||||||
*
|
*
|
||||||
* <p><a name="legal-chars"></a> The set of all legal URI characters consists of
|
* <p><a id="legal-chars"></a> The set of all legal URI characters consists of
|
||||||
* the <i>unreserved</i>, <i>reserved</i>, <i>escaped</i>, and <i>other</i>
|
* the <i>unreserved</i>, <i>reserved</i>, <i>escaped</i>, and <i>other</i>
|
||||||
* characters.
|
* characters.
|
||||||
*
|
*
|
||||||
|
@ -308,20 +308,20 @@ import java.lang.NullPointerException; // for javadoc
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
*
|
*
|
||||||
* <li><p><a name="encode"></a> A character is <i>encoded</i> by replacing it
|
* <li><p><a id="encode"></a> A character is <i>encoded</i> by replacing it
|
||||||
* with the sequence of escaped octets that represent that character in the
|
* with the sequence of escaped octets that represent that character in the
|
||||||
* UTF-8 character set. The Euro currency symbol ({@code '\u005Cu20AC'}),
|
* UTF-8 character set. The Euro currency symbol ({@code '\u005Cu20AC'}),
|
||||||
* for example, is encoded as {@code "%E2%82%AC"}. <i>(<b>Deviation from
|
* for example, is encoded as {@code "%E2%82%AC"}. <i>(<b>Deviation from
|
||||||
* RFC 2396</b>, which does not specify any particular character
|
* RFC 2396</b>, which does not specify any particular character
|
||||||
* set.)</i> </p></li>
|
* set.)</i> </p></li>
|
||||||
*
|
*
|
||||||
* <li><p><a name="quote"></a> An illegal character is <i>quoted</i> simply by
|
* <li><p><a id="quote"></a> An illegal character is <i>quoted</i> simply by
|
||||||
* encoding it. The space character, for example, is quoted by replacing it
|
* encoding it. The space character, for example, is quoted by replacing it
|
||||||
* with {@code "%20"}. UTF-8 contains US-ASCII, hence for US-ASCII
|
* with {@code "%20"}. UTF-8 contains US-ASCII, hence for US-ASCII
|
||||||
* characters this transformation has exactly the effect required by
|
* characters this transformation has exactly the effect required by
|
||||||
* RFC 2396. </p></li>
|
* RFC 2396. </p></li>
|
||||||
*
|
*
|
||||||
* <li><p><a name="decode"></a>
|
* <li><p><a id="decode"></a>
|
||||||
* A sequence of escaped octets is <i>decoded</i> by
|
* A sequence of escaped octets is <i>decoded</i> by
|
||||||
* replacing it with the sequence of characters that it represents in the
|
* replacing it with the sequence of characters that it represents in the
|
||||||
* UTF-8 character set. UTF-8 contains US-ASCII, hence decoding has the
|
* UTF-8 character set. UTF-8 contains US-ASCII, hence decoding has the
|
||||||
|
@ -983,7 +983,7 @@ public final class URI
|
||||||
* <p> If the given URI is already absolute, or if this URI is opaque, then
|
* <p> If the given URI is already absolute, or if this URI is opaque, then
|
||||||
* the given URI is returned.
|
* the given URI is returned.
|
||||||
*
|
*
|
||||||
* <p><a name="resolve-frag"></a> If the given URI's fragment component is
|
* <p><a id="resolve-frag"></a> If the given URI's fragment component is
|
||||||
* defined, its path component is empty, and its scheme, authority, and
|
* defined, its path component is empty, and its scheme, authority, and
|
||||||
* query components are undefined, then a URI with the given fragment but
|
* query components are undefined, then a URI with the given fragment but
|
||||||
* with all other components equal to those of this URI is returned. This
|
* with all other components equal to those of this URI is returned. This
|
||||||
|
|
|
@ -45,7 +45,7 @@ import jdk.internal.misc.Unsafe;
|
||||||
* this program or another. Whether or not such changes occur, and when they
|
* this program or another. Whether or not such changes occur, and when they
|
||||||
* occur, is operating-system dependent and therefore unspecified.
|
* occur, is operating-system dependent and therefore unspecified.
|
||||||
*
|
*
|
||||||
* <a name="inaccess"></a><p> All or part of a mapped byte buffer may become
|
* <a id="inaccess"></a><p> All or part of a mapped byte buffer may become
|
||||||
* inaccessible at any time, for example if the mapped file is truncated. An
|
* inaccessible at any time, for example if the mapped file is truncated. An
|
||||||
* attempt to access an inaccessible region of a mapped byte buffer will not
|
* attempt to access an inaccessible region of a mapped byte buffer will not
|
||||||
* change the buffer's content and will cause an unspecified exception to be
|
* change the buffer's content and will cause an unspecified exception to be
|
||||||
|
|
|
@ -88,7 +88,7 @@ import java.util.concurrent.TimeUnit;
|
||||||
* </tr>
|
* </tr>
|
||||||
* </table>
|
* </table>
|
||||||
*
|
*
|
||||||
* <a name="threading"></a><h2>Threading</h2>
|
* <a id="threading"></a><h2>Threading</h2>
|
||||||
*
|
*
|
||||||
* <p> The completion handler for an I/O operation initiated on a channel bound
|
* <p> The completion handler for an I/O operation initiated on a channel bound
|
||||||
* to a group is guaranteed to be invoked by one of the pooled threads in the
|
* to a group is guaranteed to be invoked by one of the pooled threads in the
|
||||||
|
@ -103,7 +103,7 @@ import java.util.concurrent.TimeUnit;
|
||||||
* handler directly by the initiating thread (see {@link
|
* handler directly by the initiating thread (see {@link
|
||||||
* AsynchronousServerSocketChannel#accept(Object,CompletionHandler) accept}).
|
* AsynchronousServerSocketChannel#accept(Object,CompletionHandler) accept}).
|
||||||
*
|
*
|
||||||
* <a name="shutdown"></a><h2>Shutdown and Termination</h2>
|
* <a id="shutdown"></a><h2>Shutdown and Termination</h2>
|
||||||
*
|
*
|
||||||
* <p> The {@link #shutdown() shutdown} method is used to initiate an <em>orderly
|
* <p> The {@link #shutdown() shutdown} method is used to initiate an <em>orderly
|
||||||
* shutdown</em> of a group. An orderly shutdown marks the group as shutdown;
|
* shutdown</em> of a group. An orderly shutdown marks the group as shutdown;
|
||||||
|
|
|
@ -118,7 +118,7 @@ import java.util.Collections;
|
||||||
* versa. Changing the file's content by writing bytes will change the content
|
* versa. Changing the file's content by writing bytes will change the content
|
||||||
* seen by the originating object, and vice versa.
|
* seen by the originating object, and vice versa.
|
||||||
*
|
*
|
||||||
* <a name="open-mode"></a> <p> At various points this class specifies that an
|
* <a id="open-mode"></a> <p> At various points this class specifies that an
|
||||||
* instance that is "open for reading," "open for writing," or "open for
|
* instance that is "open for reading," "open for writing," or "open for
|
||||||
* reading and writing" is required. A channel obtained via the {@link
|
* reading and writing" is required. A channel obtained via the {@link
|
||||||
* java.io.FileInputStream#getChannel getChannel} method of a {@link
|
* java.io.FileInputStream#getChannel getChannel} method of a {@link
|
||||||
|
@ -131,7 +131,7 @@ import java.util.Collections;
|
||||||
* was created with mode {@code "r"} and will be open for reading and writing
|
* was created with mode {@code "r"} and will be open for reading and writing
|
||||||
* if the instance was created with mode {@code "rw"}.
|
* if the instance was created with mode {@code "rw"}.
|
||||||
*
|
*
|
||||||
* <a name="append-mode"></a><p> A file channel that is open for writing may be in
|
* <a id="append-mode"></a><p> A file channel that is open for writing may be in
|
||||||
* <i>append mode</i>, for example if it was obtained from a file-output stream
|
* <i>append mode</i>, for example if it was obtained from a file-output stream
|
||||||
* that was created by invoking the {@link
|
* that was created by invoking the {@link
|
||||||
* java.io.FileOutputStream#FileOutputStream(java.io.File,boolean)
|
* java.io.FileOutputStream#FileOutputStream(java.io.File,boolean)
|
||||||
|
|
|
@ -73,7 +73,7 @@ import java.util.Objects;
|
||||||
* <p> File-lock objects are safe for use by multiple concurrent threads.
|
* <p> File-lock objects are safe for use by multiple concurrent threads.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <a name="pdep"></a><h2> Platform dependencies </h2>
|
* <a id="pdep"></a><h2> Platform dependencies </h2>
|
||||||
*
|
*
|
||||||
* <p> This file-locking API is intended to map directly to the native locking
|
* <p> This file-locking API is intended to map directly to the native locking
|
||||||
* facility of the underlying operating system. Thus the locks held on a file
|
* facility of the underlying operating system. Thus the locks held on a file
|
||||||
|
|
|
@ -64,7 +64,7 @@ import java.nio.channels.spi.SelectorProvider;
|
||||||
* threads. </p>
|
* threads. </p>
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <a name="bm"></a>
|
* <a id="bm"></a>
|
||||||
* <h2>Blocking mode</h2>
|
* <h2>Blocking mode</h2>
|
||||||
*
|
*
|
||||||
* A selectable channel is either in <i>blocking</i> mode or in
|
* A selectable channel is either in <i>blocking</i> mode or in
|
||||||
|
|
|
@ -40,7 +40,7 @@ import java.util.concurrent.atomic.AtomicReferenceFieldUpdater;
|
||||||
* next selection operation. The validity of a key may be tested by invoking
|
* next selection operation. The validity of a key may be tested by invoking
|
||||||
* its {@link #isValid isValid} method.
|
* its {@link #isValid isValid} method.
|
||||||
*
|
*
|
||||||
* <a name="opsets"></a>
|
* <a id="opsets"></a>
|
||||||
*
|
*
|
||||||
* <p> A selection key contains two <i>operation sets</i> represented as
|
* <p> A selection key contains two <i>operation sets</i> represented as
|
||||||
* integer values. Each bit of an operation set denotes a category of
|
* integer values. Each bit of an operation set denotes a category of
|
||||||
|
|
|
@ -42,7 +42,7 @@ import java.util.Set;
|
||||||
* method of a custom selector provider. A selector remains open until it is
|
* method of a custom selector provider. A selector remains open until it is
|
||||||
* closed via its {@link #close close} method.
|
* closed via its {@link #close close} method.
|
||||||
*
|
*
|
||||||
* <a name="ks"></a>
|
* <a id="ks"></a>
|
||||||
*
|
*
|
||||||
* <p> A selectable channel's registration with a selector is represented by a
|
* <p> A selectable channel's registration with a selector is represented by a
|
||||||
* {@link SelectionKey} object. A selector maintains three sets of selection
|
* {@link SelectionKey} object. A selector maintains three sets of selection
|
||||||
|
@ -80,7 +80,7 @@ import java.util.Set;
|
||||||
* during the next selection operation, at which time the key will removed from
|
* during the next selection operation, at which time the key will removed from
|
||||||
* all of the selector's key sets.
|
* all of the selector's key sets.
|
||||||
*
|
*
|
||||||
* <a name="sks"></a><p> Keys are added to the selected-key set by selection
|
* <a id="sks"></a><p> Keys are added to the selected-key set by selection
|
||||||
* operations. A key may be removed directly from the selected-key set by
|
* operations. A key may be removed directly from the selected-key set by
|
||||||
* invoking the set's {@link java.util.Set#remove(java.lang.Object) remove}
|
* invoking the set's {@link java.util.Set#remove(java.lang.Object) remove}
|
||||||
* method or by invoking the {@link java.util.Iterator#remove() remove} method
|
* method or by invoking the {@link java.util.Iterator#remove() remove} method
|
||||||
|
@ -90,7 +90,7 @@ import java.util.Set;
|
||||||
* operations. Keys may not be added directly to the selected-key set. </p>
|
* operations. Keys may not be added directly to the selected-key set. </p>
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <a name="selop"></a>
|
* <a id="selop"></a>
|
||||||
* <h2>Selection</h2>
|
* <h2>Selection</h2>
|
||||||
*
|
*
|
||||||
* <p> During each selection operation, keys may be added to and removed from a
|
* <p> During each selection operation, keys may be added to and removed from a
|
||||||
|
@ -183,7 +183,7 @@ import java.util.Set;
|
||||||
* <p> The {@link #close close} method synchronizes on the selector and all
|
* <p> The {@link #close close} method synchronizes on the selector and all
|
||||||
* three key sets in the same order as in a selection operation.
|
* three key sets in the same order as in a selection operation.
|
||||||
*
|
*
|
||||||
* <a name="ksc"></a>
|
* <a id="ksc"></a>
|
||||||
*
|
*
|
||||||
* <p> A selector's key and selected-key sets are not, in general, safe for use
|
* <p> A selector's key and selected-key sets are not, in general, safe for use
|
||||||
* by multiple concurrent threads. If such a thread might modify one of these
|
* by multiple concurrent threads. If such a thread might modify one of these
|
||||||
|
|
|
@ -67,7 +67,7 @@ import sun.security.action.GetPropertyAction;
|
||||||
* concurrent threads.
|
* concurrent threads.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <a name="names"></a><a name="charenc"></a>
|
* <a id="names"></a><a id="charenc"></a>
|
||||||
* <h2>Charset names</h2>
|
* <h2>Charset names</h2>
|
||||||
*
|
*
|
||||||
* <p> Charsets are named by strings composed of the following characters:
|
* <p> Charsets are named by strings composed of the following characters:
|
||||||
|
@ -113,14 +113,14 @@ import sun.security.action.GetPropertyAction;
|
||||||
* The aliases of a charset are returned by the {@link #aliases() aliases}
|
* The aliases of a charset are returned by the {@link #aliases() aliases}
|
||||||
* method.
|
* method.
|
||||||
*
|
*
|
||||||
* <p><a name="hn">Some charsets have an <i>historical name</i> that is defined for
|
* <p><a id="hn">Some charsets have an <i>historical name</i> that is defined for
|
||||||
* compatibility with previous versions of the Java platform.</a> A charset's
|
* compatibility with previous versions of the Java platform.</a> A charset's
|
||||||
* historical name is either its canonical name or one of its aliases. The
|
* historical name is either its canonical name or one of its aliases. The
|
||||||
* historical name is returned by the {@code getEncoding()} methods of the
|
* historical name is returned by the {@code getEncoding()} methods of the
|
||||||
* {@link java.io.InputStreamReader#getEncoding InputStreamReader} and {@link
|
* {@link java.io.InputStreamReader#getEncoding InputStreamReader} and {@link
|
||||||
* java.io.OutputStreamWriter#getEncoding OutputStreamWriter} classes.
|
* java.io.OutputStreamWriter#getEncoding OutputStreamWriter} classes.
|
||||||
*
|
*
|
||||||
* <p><a name="iana"> </a>If a charset listed in the <a
|
* <p><a id="iana"> </a>If a charset listed in the <a
|
||||||
* href="http://www.iana.org/assignments/character-sets"><i>IANA Charset
|
* href="http://www.iana.org/assignments/character-sets"><i>IANA Charset
|
||||||
* Registry</i></a> is supported by an implementation of the Java platform then
|
* Registry</i></a> is supported by an implementation of the Java platform then
|
||||||
* its canonical name must be the name listed in the registry. Many charsets
|
* its canonical name must be the name listed in the registry. Many charsets
|
||||||
|
@ -142,7 +142,7 @@ import sun.security.action.GetPropertyAction;
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <p><a name="standard">Every implementation of the Java platform is required to support the
|
* <p><a id="standard">Every implementation of the Java platform is required to support the
|
||||||
* following standard charsets.</a> Consult the release documentation for your
|
* following standard charsets.</a> Consult the release documentation for your
|
||||||
* implementation to see if any other charsets are supported. The behavior
|
* implementation to see if any other charsets are supported. The behavior
|
||||||
* of such optional charsets may differ between implementations.
|
* of such optional charsets may differ between implementations.
|
||||||
|
|
|
@ -76,7 +76,7 @@ import java.util.NoSuchElementException;
|
||||||
* BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
|
* BufferedReader reader = Files.newBufferedReader(path, StandardCharsets.UTF_8);
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* <a name="interop"></a><h2>Interoperability</h2>
|
* <a id="interop"></a><h2>Interoperability</h2>
|
||||||
* <p> Paths associated with the default {@link
|
* <p> Paths associated with the default {@link
|
||||||
* java.nio.file.spi.FileSystemProvider provider} are generally interoperable
|
* java.nio.file.spi.FileSystemProvider provider} are generally interoperable
|
||||||
* with the {@link java.io.File java.io.File} class. Paths created by other
|
* with the {@link java.io.File java.io.File} class. Paths created by other
|
||||||
|
|
|
@ -68,19 +68,19 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* (word, line, sentence, and so on). You must use a different iterator
|
* (word, line, sentence, and so on). You must use a different iterator
|
||||||
* for each unit boundary analysis you wish to perform.
|
* for each unit boundary analysis you wish to perform.
|
||||||
*
|
*
|
||||||
* <p><a name="line"></a>
|
* <p><a id="line"></a>
|
||||||
* Line boundary analysis determines where a text string can be
|
* Line boundary analysis determines where a text string can be
|
||||||
* broken when line-wrapping. The mechanism correctly handles
|
* broken when line-wrapping. The mechanism correctly handles
|
||||||
* punctuation and hyphenated words. Actual line breaking needs
|
* punctuation and hyphenated words. Actual line breaking needs
|
||||||
* to also consider the available line width and is handled by
|
* to also consider the available line width and is handled by
|
||||||
* higher-level software.
|
* higher-level software.
|
||||||
*
|
*
|
||||||
* <p><a name="sentence"></a>
|
* <p><a id="sentence"></a>
|
||||||
* Sentence boundary analysis allows selection with correct interpretation
|
* Sentence boundary analysis allows selection with correct interpretation
|
||||||
* of periods within numbers and abbreviations, and trailing punctuation
|
* of periods within numbers and abbreviations, and trailing punctuation
|
||||||
* marks such as quotation marks and parentheses.
|
* marks such as quotation marks and parentheses.
|
||||||
*
|
*
|
||||||
* <p><a name="word"></a>
|
* <p><a id="word"></a>
|
||||||
* Word boundary analysis is used by search and replace functions, as
|
* Word boundary analysis is used by search and replace functions, as
|
||||||
* well as within text editing applications that allow the user to
|
* well as within text editing applications that allow the user to
|
||||||
* select words with a double click. Word selection provides correct
|
* select words with a double click. Word selection provides correct
|
||||||
|
@ -88,7 +88,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* words. Characters that are not part of a word, such as symbols
|
* words. Characters that are not part of a word, such as symbols
|
||||||
* or punctuation marks, have word-breaks on both sides.
|
* or punctuation marks, have word-breaks on both sides.
|
||||||
*
|
*
|
||||||
* <p><a name="character"></a>
|
* <p><a id="character"></a>
|
||||||
* Character boundary analysis allows users to interact with characters
|
* Character boundary analysis allows users to interact with characters
|
||||||
* as they expect to, for example, when moving the cursor through a text
|
* as they expect to, for example, when moving the cursor through a text
|
||||||
* string. Character boundary analysis provides correct navigation
|
* string. Character boundary analysis provides correct navigation
|
||||||
|
|
|
@ -151,7 +151,7 @@ import java.util.Arrays;
|
||||||
* }</pre>
|
* }</pre>
|
||||||
* </blockquote>
|
* </blockquote>
|
||||||
*
|
*
|
||||||
* <h3><a name="synchronization">Synchronization</a></h3>
|
* <h3><a id="synchronization">Synchronization</a></h3>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Choice formats are not synchronized.
|
* Choice formats are not synchronized.
|
||||||
|
|
|
@ -133,7 +133,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* on the screen.
|
* on the screen.
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h3><a name="synchronization">Synchronization</a></h3>
|
* <h3><a id="synchronization">Synchronization</a></h3>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Date formats are not synchronized.
|
* Date formats are not synchronized.
|
||||||
|
|
|
@ -327,7 +327,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
|
||||||
* and <code>isParseIntegerOnly()</code> are false.
|
* and <code>isParseIntegerOnly()</code> are false.
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h4><a name="synchronization">Synchronization</a></h4>
|
* <h4><a id="synchronization">Synchronization</a></h4>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Decimal formats are generally not synchronized.
|
* Decimal formats are generally not synchronized.
|
||||||
|
|
|
@ -115,7 +115,7 @@ import java.io.Serializable;
|
||||||
* the field. For examples of these constants, see <code>ERA_FIELD</code> and its
|
* the field. For examples of these constants, see <code>ERA_FIELD</code> and its
|
||||||
* friends in {@link DateFormat}.
|
* friends in {@link DateFormat}.
|
||||||
*
|
*
|
||||||
* <h4><a name="synchronization">Synchronization</a></h4>
|
* <h4><a id="synchronization">Synchronization</a></h4>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Formats are generally not synchronized.
|
* Formats are generally not synchronized.
|
||||||
|
|
|
@ -68,7 +68,7 @@ import java.util.Locale;
|
||||||
* behavior is defined by the pattern that you provide as well as the
|
* behavior is defined by the pattern that you provide as well as the
|
||||||
* subformats used for inserted arguments.
|
* subformats used for inserted arguments.
|
||||||
*
|
*
|
||||||
* <h3><a name="patterns">Patterns and Their Interpretation</a></h3>
|
* <h3><a id="patterns">Patterns and Their Interpretation</a></h3>
|
||||||
*
|
*
|
||||||
* <code>MessageFormat</code> uses patterns of the following form:
|
* <code>MessageFormat</code> uses patterns of the following form:
|
||||||
* <blockquote><pre>
|
* <blockquote><pre>
|
||||||
|
@ -321,7 +321,7 @@ import java.util.Locale;
|
||||||
* // result now equals {new String("z")}
|
* // result now equals {new String("z")}
|
||||||
* </pre></blockquote>
|
* </pre></blockquote>
|
||||||
*
|
*
|
||||||
* <h4><a name="synchronization">Synchronization</a></h4>
|
* <h4><a id="synchronization">Synchronization</a></h4>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Message formats are not synchronized.
|
* Message formats are not synchronized.
|
||||||
|
|
|
@ -166,7 +166,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* numbers: "(12)" for -12.
|
* numbers: "(12)" for -12.
|
||||||
* </ol>
|
* </ol>
|
||||||
*
|
*
|
||||||
* <h3><a name="synchronization">Synchronization</a></h3>
|
* <h3><a id="synchronization">Synchronization</a></h3>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Number formats are generally not synchronized.
|
* Number formats are generally not synchronized.
|
||||||
|
|
|
@ -218,18 +218,18 @@ import sun.util.locale.provider.LocaleProviderAdapter;
|
||||||
* Pattern letters are usually repeated, as their number determines the
|
* Pattern letters are usually repeated, as their number determines the
|
||||||
* exact presentation:
|
* exact presentation:
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><strong><a name="text">Text:</a></strong>
|
* <li><strong><a id="text">Text:</a></strong>
|
||||||
* For formatting, if the number of pattern letters is 4 or more,
|
* For formatting, if the number of pattern letters is 4 or more,
|
||||||
* the full form is used; otherwise a short or abbreviated form
|
* the full form is used; otherwise a short or abbreviated form
|
||||||
* is used if available.
|
* is used if available.
|
||||||
* For parsing, both forms are accepted, independent of the number
|
* For parsing, both forms are accepted, independent of the number
|
||||||
* of pattern letters.<br><br></li>
|
* of pattern letters.<br><br></li>
|
||||||
* <li><strong><a name="number">Number:</a></strong>
|
* <li><strong><a id="number">Number:</a></strong>
|
||||||
* For formatting, the number of pattern letters is the minimum
|
* For formatting, the number of pattern letters is the minimum
|
||||||
* number of digits, and shorter numbers are zero-padded to this amount.
|
* number of digits, and shorter numbers are zero-padded to this amount.
|
||||||
* For parsing, the number of pattern letters is ignored unless
|
* For parsing, the number of pattern letters is ignored unless
|
||||||
* it's needed to separate two adjacent fields.<br><br></li>
|
* it's needed to separate two adjacent fields.<br><br></li>
|
||||||
* <li><strong><a name="year">Year:</a></strong>
|
* <li><strong><a id="year">Year:</a></strong>
|
||||||
* If the formatter's {@link #getCalendar() Calendar} is the Gregorian
|
* If the formatter's {@link #getCalendar() Calendar} is the Gregorian
|
||||||
* calendar, the following rules are applied.<br>
|
* calendar, the following rules are applied.<br>
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -270,7 +270,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
|
||||||
* DateFormat#getCalendar() getCalendar()}.{@link
|
* DateFormat#getCalendar() getCalendar()}.{@link
|
||||||
* java.util.Calendar#isWeekDateSupported()
|
* java.util.Calendar#isWeekDateSupported()
|
||||||
* isWeekDateSupported()}.<br><br></li>
|
* isWeekDateSupported()}.<br><br></li>
|
||||||
* <li><strong><a name="month">Month:</a></strong>
|
* <li><strong><a id="month">Month:</a></strong>
|
||||||
* If the number of pattern letters is 3 or more, the month is
|
* If the number of pattern letters is 3 or more, the month is
|
||||||
* interpreted as <a href="#text">text</a>; otherwise,
|
* interpreted as <a href="#text">text</a>; otherwise,
|
||||||
* it is interpreted as a <a href="#number">number</a>.<br>
|
* it is interpreted as a <a href="#number">number</a>.<br>
|
||||||
|
@ -291,12 +291,12 @@ import sun.util.locale.provider.LocaleProviderAdapter;
|
||||||
* <li>Letter <em>L</em> produces the standalone form of month names.</li>
|
* <li>Letter <em>L</em> produces the standalone form of month names.</li>
|
||||||
* </ul>
|
* </ul>
|
||||||
* <br></li>
|
* <br></li>
|
||||||
* <li><strong><a name="timezone">General time zone:</a></strong>
|
* <li><strong><a id="timezone">General time zone:</a></strong>
|
||||||
* Time zones are interpreted as <a href="#text">text</a> if they have
|
* Time zones are interpreted as <a href="#text">text</a> if they have
|
||||||
* names. For time zones representing a GMT offset value, the
|
* names. For time zones representing a GMT offset value, the
|
||||||
* following syntax is used:
|
* following syntax is used:
|
||||||
* <pre>
|
* <pre>
|
||||||
* <a name="GMTOffsetTimeZone"><i>GMTOffsetTimeZone:</i></a>
|
* <a id="GMTOffsetTimeZone"><i>GMTOffsetTimeZone:</i></a>
|
||||||
* <code>GMT</code> <i>Sign</i> <i>Hours</i> <code>:</code> <i>Minutes</i>
|
* <code>GMT</code> <i>Sign</i> <i>Hours</i> <code>:</code> <i>Minutes</i>
|
||||||
* <i>Sign:</i> one of
|
* <i>Sign:</i> one of
|
||||||
* <code>+ -</code>
|
* <code>+ -</code>
|
||||||
|
@ -312,7 +312,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
|
||||||
* from the Basic Latin block of the Unicode standard.
|
* from the Basic Latin block of the Unicode standard.
|
||||||
* <p>For parsing, <a href="#rfc822timezone">RFC 822 time zones</a> are also
|
* <p>For parsing, <a href="#rfc822timezone">RFC 822 time zones</a> are also
|
||||||
* accepted.<br><br></li>
|
* accepted.<br><br></li>
|
||||||
* <li><strong><a name="rfc822timezone">RFC 822 time zone:</a></strong>
|
* <li><strong><a id="rfc822timezone">RFC 822 time zone:</a></strong>
|
||||||
* For formatting, the RFC 822 4-digit time zone format is used:
|
* For formatting, the RFC 822 4-digit time zone format is used:
|
||||||
*
|
*
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@ -325,7 +325,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
|
||||||
*
|
*
|
||||||
* <p>For parsing, <a href="#timezone">general time zones</a> are also
|
* <p>For parsing, <a href="#timezone">general time zones</a> are also
|
||||||
* accepted.
|
* accepted.
|
||||||
* <li><strong><a name="iso8601timezone">ISO 8601 Time zone:</a></strong>
|
* <li><strong><a id="iso8601timezone">ISO 8601 Time zone:</a></strong>
|
||||||
* The number of pattern letters designates the format for both formatting
|
* The number of pattern letters designates the format for both formatting
|
||||||
* and parsing as follows:
|
* and parsing as follows:
|
||||||
* <pre>
|
* <pre>
|
||||||
|
@ -410,7 +410,7 @@ import sun.util.locale.provider.LocaleProviderAdapter;
|
||||||
* </table>
|
* </table>
|
||||||
* </blockquote>
|
* </blockquote>
|
||||||
*
|
*
|
||||||
* <h4><a name="synchronization">Synchronization</a></h4>
|
* <h4><a id="synchronization">Synchronization</a></h4>
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* Date formats are not synchronized.
|
* Date formats are not synchronized.
|
||||||
|
|
|
@ -41,21 +41,21 @@ import java.nio.charset.StandardCharsets;
|
||||||
* <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>.
|
* <a href="http://www.ietf.org/rfc/rfc2045.txt">RFC 2045</a>.
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
* <li><a name="basic"><b>Basic</b></a>
|
* <li><a id="basic"><b>Basic</b></a>
|
||||||
* <p> Uses "The Base64 Alphabet" as specified in Table 1 of
|
* <p> Uses "The Base64 Alphabet" as specified in Table 1 of
|
||||||
* RFC 4648 and RFC 2045 for encoding and decoding operation.
|
* RFC 4648 and RFC 2045 for encoding and decoding operation.
|
||||||
* The encoder does not add any line feed (line separator)
|
* The encoder does not add any line feed (line separator)
|
||||||
* character. The decoder rejects data that contains characters
|
* character. The decoder rejects data that contains characters
|
||||||
* outside the base64 alphabet.</p></li>
|
* outside the base64 alphabet.</p></li>
|
||||||
*
|
*
|
||||||
* <li><a name="url"><b>URL and Filename safe</b></a>
|
* <li><a id="url"><b>URL and Filename safe</b></a>
|
||||||
* <p> Uses the "URL and Filename safe Base64 Alphabet" as specified
|
* <p> Uses the "URL and Filename safe Base64 Alphabet" as specified
|
||||||
* in Table 2 of RFC 4648 for encoding and decoding. The
|
* in Table 2 of RFC 4648 for encoding and decoding. The
|
||||||
* encoder does not add any line feed (line separator) character.
|
* encoder does not add any line feed (line separator) character.
|
||||||
* The decoder rejects data that contains characters outside the
|
* The decoder rejects data that contains characters outside the
|
||||||
* base64 alphabet.</p></li>
|
* base64 alphabet.</p></li>
|
||||||
*
|
*
|
||||||
* <li><a name="mime"><b>MIME</b></a>
|
* <li><a id="mime"><b>MIME</b></a>
|
||||||
* <p> Uses the "The Base64 Alphabet" as specified in Table 1 of
|
* <p> Uses the "The Base64 Alphabet" as specified in Table 1 of
|
||||||
* RFC 2045 for encoding and decoding operation. The encoded output
|
* RFC 2045 for encoding and decoding operation. The encoded output
|
||||||
* must be represented in lines of no more than 76 characters each
|
* must be represented in lines of no more than 76 characters each
|
||||||
|
|
|
@ -67,7 +67,7 @@ import sun.util.spi.CalendarProvider;
|
||||||
* <code>DAY_OF_MONTH</code>, <code>HOUR</code>, and so on, and for
|
* <code>DAY_OF_MONTH</code>, <code>HOUR</code>, and so on, and for
|
||||||
* manipulating the calendar fields, such as getting the date of the next
|
* manipulating the calendar fields, such as getting the date of the next
|
||||||
* week. An instant in time can be represented by a millisecond value that is
|
* week. An instant in time can be represented by a millisecond value that is
|
||||||
* an offset from the <a name="Epoch"><em>Epoch</em></a>, January 1, 1970
|
* an offset from the <a id="Epoch"><em>Epoch</em></a>, January 1, 1970
|
||||||
* 00:00:00.000 GMT (Gregorian).
|
* 00:00:00.000 GMT (Gregorian).
|
||||||
*
|
*
|
||||||
* <p>The class also provides additional fields and methods for
|
* <p>The class also provides additional fields and methods for
|
||||||
|
@ -124,7 +124,7 @@ import sun.util.spi.CalendarProvider;
|
||||||
* calculating its time or calendar field values if any out-of-range field
|
* calculating its time or calendar field values if any out-of-range field
|
||||||
* value has been set.
|
* value has been set.
|
||||||
*
|
*
|
||||||
* <h4><a name="first_week">First Week</a></h4>
|
* <h4><a id="first_week">First Week</a></h4>
|
||||||
*
|
*
|
||||||
* <code>Calendar</code> defines a locale-specific seven day week using two
|
* <code>Calendar</code> defines a locale-specific seven day week using two
|
||||||
* parameters: the first day of the week and the minimal days in first week
|
* parameters: the first day of the week and the minimal days in first week
|
||||||
|
@ -154,13 +154,13 @@ import sun.util.spi.CalendarProvider;
|
||||||
* calendar field values to determine the date and time in the
|
* calendar field values to determine the date and time in the
|
||||||
* following way.
|
* following way.
|
||||||
*
|
*
|
||||||
* <p><a name="resolution">If there is any conflict in calendar field values,
|
* <p><a id="resolution">If there is any conflict in calendar field values,
|
||||||
* <code>Calendar</code> gives priorities to calendar fields that have been set
|
* <code>Calendar</code> gives priorities to calendar fields that have been set
|
||||||
* more recently.</a> The following are the default combinations of the
|
* more recently.</a> The following are the default combinations of the
|
||||||
* calendar fields. The most recent combination, as determined by the
|
* calendar fields. The most recent combination, as determined by the
|
||||||
* most recently set single field, will be used.
|
* most recently set single field, will be used.
|
||||||
*
|
*
|
||||||
* <p><a name="date_resolution">For the date fields</a>:
|
* <p><a id="date_resolution">For the date fields</a>:
|
||||||
* <blockquote>
|
* <blockquote>
|
||||||
* <pre>
|
* <pre>
|
||||||
* YEAR + MONTH + DAY_OF_MONTH
|
* YEAR + MONTH + DAY_OF_MONTH
|
||||||
|
@ -170,7 +170,7 @@ import sun.util.spi.CalendarProvider;
|
||||||
* YEAR + DAY_OF_WEEK + WEEK_OF_YEAR
|
* YEAR + DAY_OF_WEEK + WEEK_OF_YEAR
|
||||||
* </pre></blockquote>
|
* </pre></blockquote>
|
||||||
*
|
*
|
||||||
* <a name="time_resolution">For the time of day fields</a>:
|
* <a id="time_resolution">For the time of day fields</a>:
|
||||||
* <blockquote>
|
* <blockquote>
|
||||||
* <pre>
|
* <pre>
|
||||||
* HOUR_OF_DAY
|
* HOUR_OF_DAY
|
||||||
|
|
|
@ -64,7 +64,7 @@ import java.util.stream.StreamSupport;
|
||||||
* but is not required to, throw the exception if the collection to be added
|
* but is not required to, throw the exception if the collection to be added
|
||||||
* is empty.
|
* is empty.
|
||||||
*
|
*
|
||||||
* <p><a name="optional-restrictions">
|
* <p><a id="optional-restrictions">
|
||||||
* Some collection implementations have restrictions on the elements that
|
* Some collection implementations have restrictions on the elements that
|
||||||
* they may contain.</a> For example, some implementations prohibit null elements,
|
* they may contain.</a> For example, some implementations prohibit null elements,
|
||||||
* and some have restrictions on the types of their elements. Attempting to
|
* and some have restrictions on the types of their elements. Attempting to
|
||||||
|
|
|
@ -137,7 +137,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* // -> s == "Duke's Birthday: May 23, 1995"
|
* // -> s == "Duke's Birthday: May 23, 1995"
|
||||||
* </pre></blockquote>
|
* </pre></blockquote>
|
||||||
*
|
*
|
||||||
* <h3><a name="org">Organization</a></h3>
|
* <h3><a id="org">Organization</a></h3>
|
||||||
*
|
*
|
||||||
* <p> This specification is divided into two sections. The first section, <a
|
* <p> This specification is divided into two sections. The first section, <a
|
||||||
* href="#summary">Summary</a>, covers the basic formatting concepts. This
|
* href="#summary">Summary</a>, covers the basic formatting concepts. This
|
||||||
|
@ -147,13 +147,13 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* details. It is intended for users who want more precise specification of
|
* details. It is intended for users who want more precise specification of
|
||||||
* formatting behavior.
|
* formatting behavior.
|
||||||
*
|
*
|
||||||
* <h3><a name="summary">Summary</a></h3>
|
* <h3><a id="summary">Summary</a></h3>
|
||||||
*
|
*
|
||||||
* <p> This section is intended to provide a brief overview of formatting
|
* <p> This section is intended to provide a brief overview of formatting
|
||||||
* concepts. For precise behavioral details, refer to the <a
|
* concepts. For precise behavioral details, refer to the <a
|
||||||
* href="#detail">Details</a> section.
|
* href="#detail">Details</a> section.
|
||||||
*
|
*
|
||||||
* <h4><a name="syntax">Format String Syntax</a></h4>
|
* <h4><a id="syntax">Format String Syntax</a></h4>
|
||||||
*
|
*
|
||||||
* <p> Every method which produces formatted output requires a <i>format
|
* <p> Every method which produces formatted output requires a <i>format
|
||||||
* string</i> and an <i>argument list</i>. The format string is a {@link
|
* string</i> and an <i>argument list</i>. The format string is a {@link
|
||||||
|
@ -370,7 +370,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> Any characters not explicitly defined as conversions are illegal and are
|
* <p> Any characters not explicitly defined as conversions are illegal and are
|
||||||
* reserved for future extensions.
|
* reserved for future extensions.
|
||||||
*
|
*
|
||||||
* <h4><a name="dt">Date/Time Conversions</a></h4>
|
* <h4><a id="dt">Date/Time Conversions</a></h4>
|
||||||
*
|
*
|
||||||
* <p> The following date and time conversion suffix characters are defined for
|
* <p> The following date and time conversion suffix characters are defined for
|
||||||
* the {@code 't'} and {@code 'T'} conversions. The types are similar to but
|
* the {@code 't'} and {@code 'T'} conversions. The types are similar to but
|
||||||
|
@ -659,7 +659,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* </pre></blockquote>
|
* </pre></blockquote>
|
||||||
*
|
*
|
||||||
* <hr>
|
* <hr>
|
||||||
* <h3><a name="detail">Details</a></h3>
|
* <h3><a id="detail">Details</a></h3>
|
||||||
*
|
*
|
||||||
* <p> This section is intended to provide behavioral details for formatting,
|
* <p> This section is intended to provide behavioral details for formatting,
|
||||||
* including conditions and exceptions, supported data types, localization, and
|
* including conditions and exceptions, supported data types, localization, and
|
||||||
|
@ -701,7 +701,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <pre>
|
* <pre>
|
||||||
* out.toUpperCase(Locale.getDefault(Locale.Category.FORMAT)) </pre>
|
* out.toUpperCase(Locale.getDefault(Locale.Category.FORMAT)) </pre>
|
||||||
*
|
*
|
||||||
* <h4><a name="dgen">General</a></h4>
|
* <h4><a id="dgen">General</a></h4>
|
||||||
*
|
*
|
||||||
* <p> The following general conversions may be applied to any argument type:
|
* <p> The following general conversions may be applied to any argument type:
|
||||||
*
|
*
|
||||||
|
@ -758,7 +758,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* </table>
|
* </table>
|
||||||
*
|
*
|
||||||
* <p> The following <a name="dFlags">flags</a> apply to general conversions:
|
* <p> The following <a id="dFlags">flags</a> apply to general conversions:
|
||||||
*
|
*
|
||||||
* <table cellpadding=5 summary="dFlags">
|
* <table cellpadding=5 summary="dFlags">
|
||||||
*
|
*
|
||||||
|
@ -777,7 +777,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* </table>
|
* </table>
|
||||||
*
|
*
|
||||||
* <p> The <a name="genWidth">width</a> is the minimum number of characters to
|
* <p> The <a id="genWidth">width</a> is the minimum number of characters to
|
||||||
* be written to the
|
* be written to the
|
||||||
* output. If the length of the converted value is less than the width then
|
* output. If the length of the converted value is less than the width then
|
||||||
* the output will be padded by <code>' '</code> (<code>'\u0020'</code>)
|
* the output will be padded by <code>' '</code> (<code>'\u0020'</code>)
|
||||||
|
@ -792,7 +792,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* the precision. If the precision is not specified then there is no explicit
|
* the precision. If the precision is not specified then there is no explicit
|
||||||
* limit on the number of characters.
|
* limit on the number of characters.
|
||||||
*
|
*
|
||||||
* <h4><a name="dchar">Character</a></h4>
|
* <h4><a id="dchar">Character</a></h4>
|
||||||
*
|
*
|
||||||
* This conversion may be applied to {@code char} and {@link Character}. It
|
* This conversion may be applied to {@code char} and {@link Character}. It
|
||||||
* may also be applied to the types {@code byte}, {@link Byte},
|
* may also be applied to the types {@code byte}, {@link Byte},
|
||||||
|
@ -828,7 +828,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> The precision is not applicable. If the precision is specified then an
|
* <p> The precision is not applicable. If the precision is specified then an
|
||||||
* {@link IllegalFormatPrecisionException} will be thrown.
|
* {@link IllegalFormatPrecisionException} will be thrown.
|
||||||
*
|
*
|
||||||
* <h4><a name="dnum">Numeric</a></h4>
|
* <h4><a id="dnum">Numeric</a></h4>
|
||||||
*
|
*
|
||||||
* <p> Numeric conversions are divided into the following categories:
|
* <p> Numeric conversions are divided into the following categories:
|
||||||
*
|
*
|
||||||
|
@ -846,7 +846,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* <p> Numeric types will be formatted according to the following algorithm:
|
* <p> Numeric types will be formatted according to the following algorithm:
|
||||||
*
|
*
|
||||||
* <p><b><a name="L10nAlgorithm"> Number Localization Algorithm</a></b>
|
* <p><b><a id="L10nAlgorithm"> Number Localization Algorithm</a></b>
|
||||||
*
|
*
|
||||||
* <p> After digits are obtained for the integer part, fractional part, and
|
* <p> After digits are obtained for the integer part, fractional part, and
|
||||||
* exponent (as appropriate for the data type), the following transformation
|
* exponent (as appropriate for the data type), the following transformation
|
||||||
|
@ -865,7 +865,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* substituted.
|
* substituted.
|
||||||
*
|
*
|
||||||
* <li> If the {@code ','} (<code>'\u002c'</code>)
|
* <li> If the {@code ','} (<code>'\u002c'</code>)
|
||||||
* <a name="L10nGroup">flag</a> is given, then the locale-specific {@linkplain
|
* <a id="L10nGroup">flag</a> is given, then the locale-specific {@linkplain
|
||||||
* java.text.DecimalFormatSymbols#getGroupingSeparator grouping separator} is
|
* java.text.DecimalFormatSymbols#getGroupingSeparator grouping separator} is
|
||||||
* inserted by scanning the integer part of the string from least significant
|
* inserted by scanning the integer part of the string from least significant
|
||||||
* to most significant digits and inserting a separator at intervals defined by
|
* to most significant digits and inserting a separator at intervals defined by
|
||||||
|
@ -896,7 +896,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* then the output will be "(Infinity)" if the {@code '('} flag is given
|
* then the output will be "(Infinity)" if the {@code '('} flag is given
|
||||||
* otherwise the output will be "-Infinity". These values are not localized.
|
* otherwise the output will be "-Infinity". These values are not localized.
|
||||||
*
|
*
|
||||||
* <p><a name="dnint"><b> Byte, Short, Integer, and Long </b></a>
|
* <p><a id="dnint"><b> Byte, Short, Integer, and Long </b></a>
|
||||||
*
|
*
|
||||||
* <p> The following conversions may be applied to {@code byte}, {@link Byte},
|
* <p> The following conversions may be applied to {@code byte}, {@link Byte},
|
||||||
* {@code short}, {@link Short}, {@code int} and {@link Integer},
|
* {@code short}, {@link Short}, {@code int} and {@link Integer},
|
||||||
|
@ -979,7 +979,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> If the {@code '-'} flag is not given, then the space padding will occur
|
* <p> If the {@code '-'} flag is not given, then the space padding will occur
|
||||||
* before the sign.
|
* before the sign.
|
||||||
*
|
*
|
||||||
* <p> The following <a name="intFlags">flags</a> apply to numeric integral
|
* <p> The following <a id="intFlags">flags</a> apply to numeric integral
|
||||||
* conversions:
|
* conversions:
|
||||||
*
|
*
|
||||||
* <table cellpadding=5 summary="intFlags">
|
* <table cellpadding=5 summary="intFlags">
|
||||||
|
@ -1027,7 +1027,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* </table>
|
* </table>
|
||||||
*
|
*
|
||||||
* <p> If no <a name="intdFlags">flags</a> are given the default formatting is
|
* <p> If no <a id="intdFlags">flags</a> are given the default formatting is
|
||||||
* as follows:
|
* as follows:
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -1043,7 +1043,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <p> The <a name="intWidth">width</a> is the minimum number of characters to
|
* <p> The <a id="intWidth">width</a> is the minimum number of characters to
|
||||||
* be written to the output. This includes any signs, digits, grouping
|
* be written to the output. This includes any signs, digits, grouping
|
||||||
* separators, radix indicator, and parentheses. If the length of the
|
* separators, radix indicator, and parentheses. If the length of the
|
||||||
* converted value is less than the width then the output will be padded by
|
* converted value is less than the width then the output will be padded by
|
||||||
|
@ -1055,7 +1055,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> The precision is not applicable. If precision is specified then an
|
* <p> The precision is not applicable. If precision is specified then an
|
||||||
* {@link IllegalFormatPrecisionException} will be thrown.
|
* {@link IllegalFormatPrecisionException} will be thrown.
|
||||||
*
|
*
|
||||||
* <p><a name="dnbint"><b> BigInteger </b></a>
|
* <p><a id="dnbint"><b> BigInteger </b></a>
|
||||||
*
|
*
|
||||||
* <p> The following conversions may be applied to {@link
|
* <p> The following conversions may be applied to {@link
|
||||||
* java.math.BigInteger}.
|
* java.math.BigInteger}.
|
||||||
|
@ -1149,7 +1149,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> The precision is not applicable. If precision is specified then an
|
* <p> The precision is not applicable. If precision is specified then an
|
||||||
* {@link IllegalFormatPrecisionException} will be thrown.
|
* {@link IllegalFormatPrecisionException} will be thrown.
|
||||||
*
|
*
|
||||||
* <p><a name="dndec"><b> Float and Double</b></a>
|
* <p><a id="dndec"><b> Float and Double</b></a>
|
||||||
*
|
*
|
||||||
* <p> The following conversions may be applied to {@code float}, {@link
|
* <p> The following conversions may be applied to {@code float}, {@link
|
||||||
* Float}, {@code double} and {@link Double}.
|
* Float}, {@code double} and {@link Double}.
|
||||||
|
@ -1240,7 +1240,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* <tr><td valign="top"> {@code 'f'}
|
* <tr><td valign="top"> {@code 'f'}
|
||||||
* <td valign="top"> <code>'\u0066'</code>
|
* <td valign="top"> <code>'\u0066'</code>
|
||||||
* <td> Requires the output to be formatted using <a name="decimal">decimal
|
* <td> Requires the output to be formatted using <a id="decimal">decimal
|
||||||
* format</a>. The <a href="#L10nAlgorithm">localization algorithm</a> is
|
* format</a>. The <a href="#L10nAlgorithm">localization algorithm</a> is
|
||||||
* applied.
|
* applied.
|
||||||
*
|
*
|
||||||
|
@ -1339,7 +1339,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> If the {@code '#'} flag is given, then the decimal separator will
|
* <p> If the {@code '#'} flag is given, then the decimal separator will
|
||||||
* always be present.
|
* always be present.
|
||||||
*
|
*
|
||||||
* <p> If no <a name="floatdFlags">flags</a> are given the default formatting
|
* <p> If no <a id="floatdFlags">flags</a> are given the default formatting
|
||||||
* is as follows:
|
* is as follows:
|
||||||
*
|
*
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -1357,7 +1357,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <p> The <a name="floatDWidth">width</a> is the minimum number of characters
|
* <p> The <a id="floatDWidth">width</a> is the minimum number of characters
|
||||||
* to be written to the output. This includes any signs, digits, grouping
|
* to be written to the output. This includes any signs, digits, grouping
|
||||||
* separators, decimal separators, exponential symbol, radix indicator,
|
* separators, decimal separators, exponential symbol, radix indicator,
|
||||||
* parentheses, and strings representing infinity and NaN as applicable. If
|
* parentheses, and strings representing infinity and NaN as applicable. If
|
||||||
|
@ -1367,7 +1367,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* {@code '-'} flag is given then the padding will be on the right. If width
|
* {@code '-'} flag is given then the padding will be on the right. If width
|
||||||
* is not specified then there is no minimum.
|
* is not specified then there is no minimum.
|
||||||
*
|
*
|
||||||
* <p> If the <a name="floatDPrec">conversion</a> is {@code 'e'},
|
* <p> If the <a id="floatDPrec">conversion</a> is {@code 'e'},
|
||||||
* {@code 'E'} or {@code 'f'}, then the precision is the number of digits
|
* {@code 'E'} or {@code 'f'}, then the precision is the number of digits
|
||||||
* after the decimal separator. If the precision is not specified, then it is
|
* after the decimal separator. If the precision is not specified, then it is
|
||||||
* assumed to be {@code 6}.
|
* assumed to be {@code 6}.
|
||||||
|
@ -1383,7 +1383,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* precision is not provided, then all of the digits as returned by {@link
|
* precision is not provided, then all of the digits as returned by {@link
|
||||||
* Double#toHexString(double)} will be output.
|
* Double#toHexString(double)} will be output.
|
||||||
*
|
*
|
||||||
* <p><a name="dnbdec"><b> BigDecimal </b></a>
|
* <p><a id="dnbdec"><b> BigDecimal </b></a>
|
||||||
*
|
*
|
||||||
* <p> The following conversions may be applied {@link java.math.BigDecimal
|
* <p> The following conversions may be applied {@link java.math.BigDecimal
|
||||||
* BigDecimal}.
|
* BigDecimal}.
|
||||||
|
@ -1468,7 +1468,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* <tr><td valign="top"> {@code 'f'}
|
* <tr><td valign="top"> {@code 'f'}
|
||||||
* <td valign="top"> <code>'\u0066'</code>
|
* <td valign="top"> <code>'\u0066'</code>
|
||||||
* <td> Requires the output to be formatted using <a name="bdecimal">decimal
|
* <td> Requires the output to be formatted using <a id="bdecimal">decimal
|
||||||
* format</a>. The <a href="#L10nAlgorithm">localization algorithm</a> is
|
* format</a>. The <a href="#L10nAlgorithm">localization algorithm</a> is
|
||||||
* applied.
|
* applied.
|
||||||
*
|
*
|
||||||
|
@ -1507,7 +1507,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* href="#floatDPrec">precision</a> is the same as defined for Float and
|
* href="#floatDPrec">precision</a> is the same as defined for Float and
|
||||||
* Double.
|
* Double.
|
||||||
*
|
*
|
||||||
* <h4><a name="ddt">Date/Time</a></h4>
|
* <h4><a id="ddt">Date/Time</a></h4>
|
||||||
*
|
*
|
||||||
* <p> This conversion may be applied to {@code long}, {@link Long}, {@link
|
* <p> This conversion may be applied to {@code long}, {@link Long}, {@link
|
||||||
* Calendar}, {@link Date} and {@link TemporalAccessor TemporalAccessor}
|
* Calendar}, {@link Date} and {@link TemporalAccessor TemporalAccessor}
|
||||||
|
@ -1744,7 +1744,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* <p> The precision is not applicable. If the precision is specified then an
|
* <p> The precision is not applicable. If the precision is specified then an
|
||||||
* {@link IllegalFormatPrecisionException} will be thrown.
|
* {@link IllegalFormatPrecisionException} will be thrown.
|
||||||
*
|
*
|
||||||
* <h4><a name="dper">Percent</a></h4>
|
* <h4><a id="dper">Percent</a></h4>
|
||||||
*
|
*
|
||||||
* <p> The conversion does not correspond to any argument.
|
* <p> The conversion does not correspond to any argument.
|
||||||
*
|
*
|
||||||
|
@ -1769,7 +1769,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
*
|
*
|
||||||
* </table>
|
* </table>
|
||||||
*
|
*
|
||||||
* <h4><a name="dls">Line Separator</a></h4>
|
* <h4><a id="dls">Line Separator</a></h4>
|
||||||
*
|
*
|
||||||
* <p> The conversion does not correspond to any argument.
|
* <p> The conversion does not correspond to any argument.
|
||||||
*
|
*
|
||||||
|
@ -1785,7 +1785,7 @@ import jdk.internal.math.FormattedFloatingDecimal;
|
||||||
* {@link IllegalFormatFlagsException}, {@link IllegalFormatWidthException},
|
* {@link IllegalFormatFlagsException}, {@link IllegalFormatWidthException},
|
||||||
* and {@link IllegalFormatPrecisionException}, respectively will be thrown.
|
* and {@link IllegalFormatPrecisionException}, respectively will be thrown.
|
||||||
*
|
*
|
||||||
* <h4><a name="dpos">Argument Index</a></h4>
|
* <h4><a id="dpos">Argument Index</a></h4>
|
||||||
*
|
*
|
||||||
* <p> Format specifiers can reference arguments in three ways:
|
* <p> Format specifiers can reference arguments in three ways:
|
||||||
*
|
*
|
||||||
|
|
|
@ -91,7 +91,7 @@ import sun.util.calendar.ZoneInfo;
|
||||||
* adjustment may be made if desired for dates that are prior to the Gregorian
|
* adjustment may be made if desired for dates that are prior to the Gregorian
|
||||||
* changeover and which fall between January 1 and March 24.
|
* changeover and which fall between January 1 and March 24.
|
||||||
*
|
*
|
||||||
* <h3><a name="week_and_year">Week Of Year and Week Year</a></h3>
|
* <h3><a id="week_and_year">Week Of Year and Week Year</a></h3>
|
||||||
*
|
*
|
||||||
* <p>Values calculated for the {@link Calendar#WEEK_OF_YEAR
|
* <p>Values calculated for the {@link Calendar#WEEK_OF_YEAR
|
||||||
* WEEK_OF_YEAR} field range from 1 to 53. The first week of a
|
* WEEK_OF_YEAR} field range from 1 to 53. The first week of a
|
||||||
|
@ -108,7 +108,7 @@ import sun.util.calendar.ZoneInfo;
|
||||||
* <p>The {@code getFirstDayOfWeek()} and {@code
|
* <p>The {@code getFirstDayOfWeek()} and {@code
|
||||||
* getMinimalDaysInFirstWeek()} values are initialized using
|
* getMinimalDaysInFirstWeek()} values are initialized using
|
||||||
* locale-dependent resources when constructing a {@code
|
* locale-dependent resources when constructing a {@code
|
||||||
* GregorianCalendar}. <a name="iso8601_compatible_setting">The week
|
* GregorianCalendar}. <a id="iso8601_compatible_setting">The week
|
||||||
* determination is compatible</a> with the ISO 8601 standard when {@code
|
* determination is compatible</a> with the ISO 8601 standard when {@code
|
||||||
* getFirstDayOfWeek()} is {@code MONDAY} and {@code
|
* getFirstDayOfWeek()} is {@code MONDAY} and {@code
|
||||||
* getMinimalDaysInFirstWeek()} is 4, which values are used in locales
|
* getMinimalDaysInFirstWeek()} is 4, which values are used in locales
|
||||||
|
@ -117,7 +117,7 @@ import sun.util.calendar.ZoneInfo;
|
||||||
* {@link Calendar#setMinimalDaysInFirstWeek(int)
|
* {@link Calendar#setMinimalDaysInFirstWeek(int)
|
||||||
* setMinimalDaysInFirstWeek()}.
|
* setMinimalDaysInFirstWeek()}.
|
||||||
*
|
*
|
||||||
* <p>A <a name="week_year"><em>week year</em></a> is in sync with a
|
* <p>A <a id="week_year"><em>week year</em></a> is in sync with a
|
||||||
* {@code WEEK_OF_YEAR} cycle. All weeks between the first and last
|
* {@code WEEK_OF_YEAR} cycle. All weeks between the first and last
|
||||||
* weeks (inclusive) have the same <em>week year</em> value.
|
* weeks (inclusive) have the same <em>week year</em> value.
|
||||||
* Therefore, the first and last days of a week year may have
|
* Therefore, the first and last days of a week year may have
|
||||||
|
|
|
@ -87,7 +87,7 @@ import java.util.function.UnaryOperator;
|
||||||
* Such exceptions are marked as "optional" in the specification for this
|
* Such exceptions are marked as "optional" in the specification for this
|
||||||
* interface.
|
* interface.
|
||||||
*
|
*
|
||||||
* <h2><a name="immutable">Immutable List Static Factory Methods</a></h2>
|
* <h2><a id="immutable">Immutable List Static Factory Methods</a></h2>
|
||||||
* <p>The {@link List#of(Object...) List.of()} static factory methods
|
* <p>The {@link List#of(Object...) List.of()} static factory methods
|
||||||
* provide a convenient way to create immutable lists. The {@code List}
|
* provide a convenient way to create immutable lists. The {@code List}
|
||||||
* instances created by these methods have the following characteristics:
|
* instances created by these methods have the following characteristics:
|
||||||
|
|
|
@ -56,7 +56,7 @@ import sun.util.ResourceBundleEnumeration;
|
||||||
* that key.
|
* that key.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* The following <a name="sample">example</a> shows two members of a resource
|
* The following <a id="sample">example</a> shows two members of a resource
|
||||||
* bundle family with the base name "MyResources".
|
* bundle family with the base name "MyResources".
|
||||||
* "MyResources" is the default member of the bundle family, and
|
* "MyResources" is the default member of the bundle family, and
|
||||||
* "MyResources_fr" is the French member.
|
* "MyResources_fr" is the French member.
|
||||||
|
|
|
@ -83,7 +83,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* described below.
|
* described below.
|
||||||
*
|
*
|
||||||
* <dl>
|
* <dl>
|
||||||
* <dt><a name="def_language"><b>language</b></a></dt>
|
* <dt><a id="def_language"><b>language</b></a></dt>
|
||||||
*
|
*
|
||||||
* <dd>ISO 639 alpha-2 or alpha-3 language code, or registered
|
* <dd>ISO 639 alpha-2 or alpha-3 language code, or registered
|
||||||
* language subtags up to 8 alpha letters (for future enhancements).
|
* language subtags up to 8 alpha letters (for future enhancements).
|
||||||
|
@ -101,7 +101,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
*
|
*
|
||||||
* <dd>Example: "en" (English), "ja" (Japanese), "kok" (Konkani)</dd>
|
* <dd>Example: "en" (English), "ja" (Japanese), "kok" (Konkani)</dd>
|
||||||
*
|
*
|
||||||
* <dt><a name="def_script"><b>script</b></a></dt>
|
* <dt><a id="def_script"><b>script</b></a></dt>
|
||||||
*
|
*
|
||||||
* <dd>ISO 15924 alpha-4 script code. You can find a full list of
|
* <dd>ISO 15924 alpha-4 script code. You can find a full list of
|
||||||
* valid script codes in the IANA Language Subtag Registry (search
|
* valid script codes in the IANA Language Subtag Registry (search
|
||||||
|
@ -115,7 +115,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
*
|
*
|
||||||
* <dd>Example: "Latn" (Latin), "Cyrl" (Cyrillic)</dd>
|
* <dd>Example: "Latn" (Latin), "Cyrl" (Cyrillic)</dd>
|
||||||
*
|
*
|
||||||
* <dt><a name="def_region"><b>country (region)</b></a></dt>
|
* <dt><a id="def_region"><b>country (region)</b></a></dt>
|
||||||
*
|
*
|
||||||
* <dd>ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.
|
* <dd>ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.
|
||||||
* You can find a full list of valid country and region codes in the
|
* You can find a full list of valid country and region codes in the
|
||||||
|
@ -129,7 +129,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* <dd>Example: "US" (United States), "FR" (France), "029"
|
* <dd>Example: "US" (United States), "FR" (France), "029"
|
||||||
* (Caribbean)</dd>
|
* (Caribbean)</dd>
|
||||||
*
|
*
|
||||||
* <dt><a name="def_variant"><b>variant</b></a></dt>
|
* <dt><a id="def_variant"><b>variant</b></a></dt>
|
||||||
*
|
*
|
||||||
* <dd>Any arbitrary value used to indicate a variation of a
|
* <dd>Any arbitrary value used to indicate a variation of a
|
||||||
* <code>Locale</code>. Where there are two or more variant values
|
* <code>Locale</code>. Where there are two or more variant values
|
||||||
|
@ -160,7 +160,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
*
|
*
|
||||||
* <dd>Example: "polyton" (Polytonic Greek), "POSIX"</dd>
|
* <dd>Example: "polyton" (Polytonic Greek), "POSIX"</dd>
|
||||||
*
|
*
|
||||||
* <dt><a name="def_extensions"><b>extensions</b></a></dt>
|
* <dt><a id="def_extensions"><b>extensions</b></a></dt>
|
||||||
*
|
*
|
||||||
* <dd>A map from single character keys to string values, indicating
|
* <dd>A map from single character keys to string values, indicating
|
||||||
* extensions apart from language identification. The extensions in
|
* extensions apart from language identification. The extensions in
|
||||||
|
@ -188,7 +188,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* requirement (is well-formed), but does not validate the value
|
* requirement (is well-formed), but does not validate the value
|
||||||
* itself. See {@link Builder} for details.
|
* itself. See {@link Builder} for details.
|
||||||
*
|
*
|
||||||
* <h3><a name="def_locale_extension">Unicode locale/language extension</a></h3>
|
* <h3><a id="def_locale_extension">Unicode locale/language extension</a></h3>
|
||||||
*
|
*
|
||||||
* <p>UTS#35, "Unicode Locale Data Markup Language" defines optional
|
* <p>UTS#35, "Unicode Locale Data Markup Language" defines optional
|
||||||
* attributes and keywords to override or refine the default behavior
|
* attributes and keywords to override or refine the default behavior
|
||||||
|
@ -269,7 +269,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* </pre>
|
* </pre>
|
||||||
* </blockquote>
|
* </blockquote>
|
||||||
*
|
*
|
||||||
* <h4><a name="LocaleMatching">Locale Matching</a></h4>
|
* <h4><a id="LocaleMatching">Locale Matching</a></h4>
|
||||||
*
|
*
|
||||||
* <p>If an application or a system is internationalized and provides localized
|
* <p>If an application or a system is internationalized and provides localized
|
||||||
* resources for multiple locales, it sometimes needs to find one or more
|
* resources for multiple locales, it sometimes needs to find one or more
|
||||||
|
@ -408,7 +408,7 @@ import sun.util.locale.provider.LocaleServiceProviderPool;
|
||||||
* Clients desiring a string representation of the complete locale can
|
* Clients desiring a string representation of the complete locale can
|
||||||
* then always rely on <code>toLanguageTag</code> for this purpose.
|
* then always rely on <code>toLanguageTag</code> for this purpose.
|
||||||
*
|
*
|
||||||
* <h5><a name="special_cases_constructor">Special cases</a></h5>
|
* <h5><a id="special_cases_constructor">Special cases</a></h5>
|
||||||
*
|
*
|
||||||
* <p>For compatibility reasons, two
|
* <p>For compatibility reasons, two
|
||||||
* non-conforming locales are treated as special cases. These are
|
* non-conforming locales are treated as special cases. These are
|
||||||
|
|
|
@ -110,7 +110,7 @@ import java.io.Serializable;
|
||||||
* Implementations may optionally handle the self-referential scenario, however
|
* Implementations may optionally handle the self-referential scenario, however
|
||||||
* most current implementations do not do so.
|
* most current implementations do not do so.
|
||||||
*
|
*
|
||||||
* <h2><a name="immutable">Immutable Map Static Factory Methods</a></h2>
|
* <h2><a id="immutable">Immutable Map Static Factory Methods</a></h2>
|
||||||
* <p>The {@link Map#of() Map.of()} and
|
* <p>The {@link Map#of() Map.of()} and
|
||||||
* {@link Map#ofEntries(Map.Entry...) Map.ofEntries()}
|
* {@link Map#ofEntries(Map.Entry...) Map.ofEntries()}
|
||||||
* static factory methods provide a convenient way to create immutable maps.
|
* static factory methods provide a convenient way to create immutable maps.
|
||||||
|
|
|
@ -290,7 +290,7 @@ class Properties extends Hashtable<Object,Object> {
|
||||||
* specifies that the key is {@code "cheeses"} and the associated
|
* specifies that the key is {@code "cheeses"} and the associated
|
||||||
* element is the empty string {@code ""}.
|
* element is the empty string {@code ""}.
|
||||||
* <p>
|
* <p>
|
||||||
* <a name="unicodeescapes"></a>
|
* <a id="unicodeescapes"></a>
|
||||||
* Characters in keys and elements can be represented in escape
|
* Characters in keys and elements can be represented in escape
|
||||||
* sequences similar to those used for character and string literals
|
* sequences similar to those used for character and string literals
|
||||||
* (see sections 3.3 and 3.10.6 of
|
* (see sections 3.3 and 3.10.6 of
|
||||||
|
|
|
@ -67,7 +67,7 @@ import sun.util.ResourceBundleEnumeration;
|
||||||
* for a complete description of the search and instantiation strategy.
|
* for a complete description of the search and instantiation strategy.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* The following <a name="sample">example</a> shows a member of a resource
|
* The following <a id="sample">example</a> shows a member of a resource
|
||||||
* bundle family with the base name "MyResources".
|
* bundle family with the base name "MyResources".
|
||||||
* The text defines the bundle "MyResources_de",
|
* The text defines the bundle "MyResources_de",
|
||||||
* the German member of the bundle family.
|
* the German member of the bundle family.
|
||||||
|
|
|
@ -204,7 +204,7 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
|
||||||
* known concrete subclasses {@code ListResourceBundle} and
|
* known concrete subclasses {@code ListResourceBundle} and
|
||||||
* {@code PropertyResourceBundle} are thread-safe.
|
* {@code PropertyResourceBundle} are thread-safe.
|
||||||
*
|
*
|
||||||
* <h3><a name="bundleprovider">Resource Bundles in Named Modules</a></h3>
|
* <h3><a id="bundleprovider">Resource Bundles in Named Modules</a></h3>
|
||||||
*
|
*
|
||||||
* When resource bundles are deployed in named modules, the following
|
* When resource bundles are deployed in named modules, the following
|
||||||
* module-specific requirements and restrictions are applied.
|
* module-specific requirements and restrictions are applied.
|
||||||
|
@ -239,7 +239,7 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
|
||||||
* </li>
|
* </li>
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* <h3><a name="RBP_support">ResourceBundleProvider Service Providers</a></h3>
|
* <h3><a id="RBP_support">ResourceBundleProvider Service Providers</a></h3>
|
||||||
*
|
*
|
||||||
* The {@code getBundle} factory methods load service providers of
|
* The {@code getBundle} factory methods load service providers of
|
||||||
* {@link ResourceBundleProvider}, if available, using {@link ServiceLoader}.
|
* {@link ResourceBundleProvider}, if available, using {@link ServiceLoader}.
|
||||||
|
@ -266,7 +266,7 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
|
||||||
* {@link #getBundle(String, Locale, ClassLoader, Control) getBundle}
|
* {@link #getBundle(String, Locale, ClassLoader, Control) getBundle}
|
||||||
* factory method for details.
|
* factory method for details.
|
||||||
*
|
*
|
||||||
* <p><a name="modify_default_behavior">For the {@code getBundle} factory</a>
|
* <p><a id="modify_default_behavior">For the {@code getBundle} factory</a>
|
||||||
* methods that take no {@link Control} instance, their <a
|
* methods that take no {@link Control} instance, their <a
|
||||||
* href="#default_behavior"> default behavior</a> of resource bundle loading
|
* href="#default_behavior"> default behavior</a> of resource bundle loading
|
||||||
* can be modified with custom {@link
|
* can be modified with custom {@link
|
||||||
|
@ -1063,7 +1063,7 @@ public abstract class ResourceBundle {
|
||||||
* description of <a href="#modify_default_behavior">modifying the default
|
* description of <a href="#modify_default_behavior">modifying the default
|
||||||
* behavior</a>.
|
* behavior</a>.
|
||||||
*
|
*
|
||||||
* <p><a name="default_behavior">The following describes the default
|
* <p><a id="default_behavior">The following describes the default
|
||||||
* behavior</a>.
|
* behavior</a>.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -1170,7 +1170,7 @@ public abstract class ResourceBundle {
|
||||||
* <p>If still no result bundle is found, the base name alone is looked up. If
|
* <p>If still no result bundle is found, the base name alone is looked up. If
|
||||||
* this still fails, a <code>MissingResourceException</code> is thrown.
|
* this still fails, a <code>MissingResourceException</code> is thrown.
|
||||||
*
|
*
|
||||||
* <p><a name="parent_chain"> Once a result resource bundle has been found,
|
* <p><a id="parent_chain"> Once a result resource bundle has been found,
|
||||||
* its <em>parent chain</em> is instantiated</a>. If the result bundle already
|
* its <em>parent chain</em> is instantiated</a>. If the result bundle already
|
||||||
* has a parent (perhaps because it was returned from a cache) the chain is
|
* has a parent (perhaps because it was returned from a cache) the chain is
|
||||||
* complete.
|
* complete.
|
||||||
|
@ -1200,7 +1200,7 @@ public abstract class ResourceBundle {
|
||||||
* path name (using "/") instead of a fully qualified class name (using
|
* path name (using "/") instead of a fully qualified class name (using
|
||||||
* ".").
|
* ".").
|
||||||
*
|
*
|
||||||
* <p><a name="default_behavior_example">
|
* <p><a id="default_behavior_example">
|
||||||
* <strong>Example:</strong></a>
|
* <strong>Example:</strong></a>
|
||||||
* <p>
|
* <p>
|
||||||
* The following class and property files are provided:
|
* The following class and property files are provided:
|
||||||
|
@ -2481,7 +2481,7 @@ public abstract class ResourceBundle {
|
||||||
* }
|
* }
|
||||||
* </pre>
|
* </pre>
|
||||||
*
|
*
|
||||||
* @apiNote <a name="note">{@code ResourceBundle.Control} is not supported
|
* @apiNote <a id="note">{@code ResourceBundle.Control} is not supported
|
||||||
* in named modules.</a> If the {@code ResourceBundle.getBundle} method with
|
* in named modules.</a> If the {@code ResourceBundle.getBundle} method with
|
||||||
* a {@code ResourceBundle.Control} is called in a named module, the method
|
* a {@code ResourceBundle.Control} is called in a named module, the method
|
||||||
* will throw an {@link UnsupportedOperationException}. Any service providers
|
* will throw an {@link UnsupportedOperationException}. Any service providers
|
||||||
|
|
|
@ -95,7 +95,7 @@ import java.util.stream.StreamSupport;
|
||||||
* s.close();
|
* s.close();
|
||||||
* }</pre></blockquote>
|
* }</pre></blockquote>
|
||||||
*
|
*
|
||||||
* <p>The <a name="default-delimiter">default whitespace delimiter</a> used
|
* <p>The <a id="default-delimiter">default whitespace delimiter</a> used
|
||||||
* by a scanner is as recognized by {@link Character#isWhitespace(char)
|
* by a scanner is as recognized by {@link Character#isWhitespace(char)
|
||||||
* Character.isWhitespace()}. The {@link #reset reset()}
|
* Character.isWhitespace()}. The {@link #reset reset()}
|
||||||
* method will reset the value of the scanner's delimiter to the default
|
* method will reset the value of the scanner's delimiter to the default
|
||||||
|
@ -152,11 +152,11 @@ import java.util.stream.StreamSupport;
|
||||||
* {@link #reset} method will reset the value of the scanner's radix to
|
* {@link #reset} method will reset the value of the scanner's radix to
|
||||||
* {@code 10} regardless of whether it was previously changed.
|
* {@code 10} regardless of whether it was previously changed.
|
||||||
*
|
*
|
||||||
* <h3> <a name="localized-numbers">Localized numbers</a> </h3>
|
* <h3> <a id="localized-numbers">Localized numbers</a> </h3>
|
||||||
*
|
*
|
||||||
* <p> An instance of this class is capable of scanning numbers in the standard
|
* <p> An instance of this class is capable of scanning numbers in the standard
|
||||||
* formats as well as in the formats of the scanner's locale. A scanner's
|
* formats as well as in the formats of the scanner's locale. A scanner's
|
||||||
* <a name="initial-locale">initial locale </a>is the value returned by the {@link
|
* <a id="initial-locale">initial locale </a>is the value returned by the {@link
|
||||||
* java.util.Locale#getDefault(Locale.Category)
|
* java.util.Locale#getDefault(Locale.Category)
|
||||||
* Locale.getDefault(Locale.Category.FORMAT)} method; it may be changed via the {@link
|
* Locale.getDefault(Locale.Category.FORMAT)} method; it may be changed via the {@link
|
||||||
* #useLocale useLocale()} method. The {@link #reset} method will reset the value of the
|
* #useLocale useLocale()} method. The {@link #reset} method will reset the value of the
|
||||||
|
@ -213,7 +213,7 @@ import java.util.stream.StreamSupport;
|
||||||
* getInfinity()}
|
* getInfinity()}
|
||||||
* </dl></blockquote>
|
* </dl></blockquote>
|
||||||
*
|
*
|
||||||
* <h4> <a name="number-syntax">Number syntax</a> </h4>
|
* <h4> <a id="number-syntax">Number syntax</a> </h4>
|
||||||
*
|
*
|
||||||
* <p> The strings that can be parsed as numbers by an instance of this class
|
* <p> The strings that can be parsed as numbers by an instance of this class
|
||||||
* are specified in terms of the following regular-expression grammar, where
|
* are specified in terms of the following regular-expression grammar, where
|
||||||
|
@ -244,7 +244,7 @@ import java.util.stream.StreamSupport;
|
||||||
* <dd>{@code ( ( }<i>Digit</i>{@code + )
|
* <dd>{@code ( ( }<i>Digit</i>{@code + )
|
||||||
* | }<i>GroupedNumeral</i>{@code )}
|
* | }<i>GroupedNumeral</i>{@code )}
|
||||||
*
|
*
|
||||||
* <dt><a name="Integer-regex"><i>Integer</i>:</a>
|
* <dt><a id="Integer-regex"><i>Integer</i>:</a>
|
||||||
* <dd>{@code ( [-+]? ( }<i>Numeral</i>{@code
|
* <dd>{@code ( [-+]? ( }<i>Numeral</i>{@code
|
||||||
* ) )}
|
* ) )}
|
||||||
* <dd>{@code | }<i>LocalPositivePrefix</i> <i>Numeral</i>
|
* <dd>{@code | }<i>LocalPositivePrefix</i> <i>Numeral</i>
|
||||||
|
@ -263,7 +263,7 @@ import java.util.stream.StreamSupport;
|
||||||
* <dt><i>Exponent</i>:
|
* <dt><i>Exponent</i>:
|
||||||
* <dd>{@code ( [eE] [+-]? }<i>Digit</i>{@code + )}
|
* <dd>{@code ( [eE] [+-]? }<i>Digit</i>{@code + )}
|
||||||
*
|
*
|
||||||
* <dt><a name="Decimal-regex"><i>Decimal</i>:</a>
|
* <dt><a id="Decimal-regex"><i>Decimal</i>:</a>
|
||||||
* <dd>{@code ( [-+]? }<i>DecimalNumeral</i>
|
* <dd>{@code ( [-+]? }<i>DecimalNumeral</i>
|
||||||
* <i>Exponent</i>{@code ? )}
|
* <i>Exponent</i>{@code ? )}
|
||||||
* <dd>{@code | }<i>LocalPositivePrefix</i>
|
* <dd>{@code | }<i>LocalPositivePrefix</i>
|
||||||
|
@ -294,7 +294,7 @@ import java.util.stream.StreamSupport;
|
||||||
* <i>NonNumber</i>
|
* <i>NonNumber</i>
|
||||||
* <i>LocalNegativeSuffix</i>
|
* <i>LocalNegativeSuffix</i>
|
||||||
*
|
*
|
||||||
* <dt><a name="Float-regex"><i>Float</i></a>:
|
* <dt><a id="Float-regex"><i>Float</i></a>:
|
||||||
* <dd><i>Decimal</i>
|
* <dd><i>Decimal</i>
|
||||||
* {@code | }<i>HexFloat</i>
|
* {@code | }<i>HexFloat</i>
|
||||||
* {@code | }<i>SignedNonNumber</i>
|
* {@code | }<i>SignedNonNumber</i>
|
||||||
|
|
|
@ -63,7 +63,7 @@ package java.util;
|
||||||
* Such exceptions are marked as "optional" in the specification for this
|
* Such exceptions are marked as "optional" in the specification for this
|
||||||
* interface.
|
* interface.
|
||||||
*
|
*
|
||||||
* <h2><a name="immutable">Immutable Set Static Factory Methods</a></h2>
|
* <h2><a id="immutable">Immutable Set Static Factory Methods</a></h2>
|
||||||
* <p>The {@link Set#of(Object...) Set.of()} static factory methods
|
* <p>The {@link Set#of(Object...) Set.of()} static factory methods
|
||||||
* provide a convenient way to create immutable sets. The {@code Set}
|
* provide a convenient way to create immutable sets. The {@code Set}
|
||||||
* instances created by these methods have the following characteristics:
|
* instances created by these methods have the following characteristics:
|
||||||
|
|
|
@ -62,7 +62,7 @@ import java.util.function.LongConsumer;
|
||||||
* New characteristics may be defined in the future, so implementors should not
|
* New characteristics may be defined in the future, so implementors should not
|
||||||
* assign meanings to unlisted values.
|
* assign meanings to unlisted values.
|
||||||
*
|
*
|
||||||
* <p><a name="binding">A Spliterator that does not report {@code IMMUTABLE} or
|
* <p><a id="binding">A Spliterator that does not report {@code IMMUTABLE} or
|
||||||
* {@code CONCURRENT} is expected to have a documented policy concerning:
|
* {@code CONCURRENT} is expected to have a documented policy concerning:
|
||||||
* when the spliterator <em>binds</em> to the element source; and detection of
|
* when the spliterator <em>binds</em> to the element source; and detection of
|
||||||
* structural interference of the element source detected after binding.</a> A
|
* structural interference of the element source detected after binding.</a> A
|
||||||
|
|
|
@ -74,7 +74,7 @@ import sun.util.locale.provider.TimeZoneNameUtility;
|
||||||
* produce a TimeZone. The syntax of a custom time zone ID is:
|
* produce a TimeZone. The syntax of a custom time zone ID is:
|
||||||
*
|
*
|
||||||
* <blockquote><pre>
|
* <blockquote><pre>
|
||||||
* <a name="CustomID"><i>CustomID:</i></a>
|
* <a id="CustomID"><i>CustomID:</i></a>
|
||||||
* <code>GMT</code> <i>Sign</i> <i>Hours</i> <code>:</code> <i>Minutes</i>
|
* <code>GMT</code> <i>Sign</i> <i>Hours</i> <code>:</code> <i>Minutes</i>
|
||||||
* <code>GMT</code> <i>Sign</i> <i>Hours</i> <i>Minutes</i>
|
* <code>GMT</code> <i>Sign</i> <i>Hours</i> <i>Minutes</i>
|
||||||
* <code>GMT</code> <i>Sign</i> <i>Hours</i>
|
* <code>GMT</code> <i>Sign</i> <i>Hours</i>
|
||||||
|
@ -102,7 +102,7 @@ import sun.util.locale.provider.TimeZoneNameUtility;
|
||||||
* When creating a <code>TimeZone</code>, the specified custom time
|
* When creating a <code>TimeZone</code>, the specified custom time
|
||||||
* zone ID is normalized in the following syntax:
|
* zone ID is normalized in the following syntax:
|
||||||
* <blockquote><pre>
|
* <blockquote><pre>
|
||||||
* <a name="NormalizedCustomID"><i>NormalizedCustomID:</i></a>
|
* <a id="NormalizedCustomID"><i>NormalizedCustomID:</i></a>
|
||||||
* <code>GMT</code> <i>Sign</i> <i>TwoDigitHours</i> <code>:</code> <i>Minutes</i>
|
* <code>GMT</code> <i>Sign</i> <i>TwoDigitHours</i> <code>:</code> <i>Minutes</i>
|
||||||
* <i>Sign:</i> one of
|
* <i>Sign:</i> one of
|
||||||
* <code>+ -</code>
|
* <code>+ -</code>
|
||||||
|
|
|
@ -48,7 +48,7 @@ import sun.security.util.SignatureFileVerifier;
|
||||||
* processing multi-release jar files. The {@code Manifest} can be used
|
* processing multi-release jar files. The {@code Manifest} can be used
|
||||||
* to specify meta-information about the jar file and its entries.
|
* to specify meta-information about the jar file and its entries.
|
||||||
*
|
*
|
||||||
* <p><a name="multirelease">A multi-release jar file</a> is a jar file that
|
* <p><a id="multirelease">A multi-release jar file</a> is a jar file that
|
||||||
* contains a manifest with a main attribute named "Multi-Release",
|
* contains a manifest with a main attribute named "Multi-Release",
|
||||||
* a set of "base" entries, some of which are public classes with public
|
* a set of "base" entries, some of which are public classes with public
|
||||||
* or protected methods that comprise the public interface of the jar file,
|
* or protected methods that comprise the public interface of the jar file,
|
||||||
|
|
|
@ -77,7 +77,7 @@ import java.util.stream.StreamSupport;
|
||||||
* such use.
|
* such use.
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <h3><a name="sum">Summary of regular-expression constructs</a></h3>
|
* <h3><a id="sum">Summary of regular-expression constructs</a></h3>
|
||||||
*
|
*
|
||||||
* <table border="0" cellpadding="1" cellspacing="0"
|
* <table border="0" cellpadding="1" cellspacing="0"
|
||||||
* summary="Regular expression constructs, and what they match">
|
* summary="Regular expression constructs, and what they match">
|
||||||
|
@ -388,7 +388,7 @@ import java.util.stream.StreamSupport;
|
||||||
* <hr>
|
* <hr>
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* <h3><a name="bs">Backslashes, escapes, and quoting</a></h3>
|
* <h3><a id="bs">Backslashes, escapes, and quoting</a></h3>
|
||||||
*
|
*
|
||||||
* <p> The backslash character ({@code '\'}) serves to introduce escaped
|
* <p> The backslash character ({@code '\'}) serves to introduce escaped
|
||||||
* constructs, as defined in the table above, as well as to quote characters
|
* constructs, as defined in the table above, as well as to quote characters
|
||||||
|
@ -416,7 +416,7 @@ import java.util.stream.StreamSupport;
|
||||||
* {@code (hello)} the string literal {@code "\\(hello\\)"}
|
* {@code (hello)} the string literal {@code "\\(hello\\)"}
|
||||||
* must be used.
|
* must be used.
|
||||||
*
|
*
|
||||||
* <h3><a name="cc">Character Classes</a></h3>
|
* <h3><a id="cc">Character Classes</a></h3>
|
||||||
*
|
*
|
||||||
* <p> Character classes may appear within other character classes, and
|
* <p> Character classes may appear within other character classes, and
|
||||||
* may be composed by the union operator (implicit) and the intersection
|
* may be composed by the union operator (implicit) and the intersection
|
||||||
|
@ -454,7 +454,7 @@ import java.util.stream.StreamSupport;
|
||||||
* character class, while the expression {@code -} becomes a range
|
* character class, while the expression {@code -} becomes a range
|
||||||
* forming metacharacter.
|
* forming metacharacter.
|
||||||
*
|
*
|
||||||
* <h3><a name="lt">Line terminators</a></h3>
|
* <h3><a id="lt">Line terminators</a></h3>
|
||||||
*
|
*
|
||||||
* <p> A <i>line terminator</i> is a one- or two-character sequence that marks
|
* <p> A <i>line terminator</i> is a one- or two-character sequence that marks
|
||||||
* the end of a line of the input character sequence. The following are
|
* the end of a line of the input character sequence. The following are
|
||||||
|
@ -489,9 +489,9 @@ import java.util.stream.StreamSupport;
|
||||||
* except at the end of input. When in {@link #MULTILINE} mode {@code $}
|
* except at the end of input. When in {@link #MULTILINE} mode {@code $}
|
||||||
* matches just before a line terminator or the end of the input sequence.
|
* matches just before a line terminator or the end of the input sequence.
|
||||||
*
|
*
|
||||||
* <h3><a name="cg">Groups and capturing</a></h3>
|
* <h3><a id="cg">Groups and capturing</a></h3>
|
||||||
*
|
*
|
||||||
* <h4><a name="gnumber">Group number</a></h4>
|
* <h4><a id="gnumber">Group number</a></h4>
|
||||||
* <p> Capturing groups are numbered by counting their opening parentheses from
|
* <p> Capturing groups are numbered by counting their opening parentheses from
|
||||||
* left to right. In the expression {@code ((A)(B(C)))}, for example, there
|
* left to right. In the expression {@code ((A)(B(C)))}, for example, there
|
||||||
* are four such groups: </p>
|
* are four such groups: </p>
|
||||||
|
@ -514,7 +514,7 @@ import java.util.stream.StreamSupport;
|
||||||
* subsequence may be used later in the expression, via a back reference, and
|
* subsequence may be used later in the expression, via a back reference, and
|
||||||
* may also be retrieved from the matcher once the match operation is complete.
|
* may also be retrieved from the matcher once the match operation is complete.
|
||||||
*
|
*
|
||||||
* <h4><a name="groupname">Group name</a></h4>
|
* <h4><a id="groupname">Group name</a></h4>
|
||||||
* <p>A capturing group can also be assigned a "name", a {@code named-capturing group},
|
* <p>A capturing group can also be assigned a "name", a {@code named-capturing group},
|
||||||
* and then be back-referenced later by the "name". Group names are composed of
|
* and then be back-referenced later by the "name". Group names are composed of
|
||||||
* the following characters. The first character must be a {@code letter}.
|
* the following characters. The first character must be a {@code letter}.
|
||||||
|
@ -585,7 +585,7 @@ import java.util.stream.StreamSupport;
|
||||||
* and outside of a character class.
|
* and outside of a character class.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* <b><a name="usc">Scripts</a></b> are specified either with the prefix {@code Is}, as in
|
* <b><a id="usc">Scripts</a></b> are specified either with the prefix {@code Is}, as in
|
||||||
* {@code IsHiragana}, or by using the {@code script} keyword (or its short
|
* {@code IsHiragana}, or by using the {@code script} keyword (or its short
|
||||||
* form {@code sc}) as in {@code script=Hiragana} or {@code sc=Hiragana}.
|
* form {@code sc}) as in {@code script=Hiragana} or {@code sc=Hiragana}.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -594,7 +594,7 @@ import java.util.stream.StreamSupport;
|
||||||
* {@link java.lang.Character.UnicodeScript#forName(String) UnicodeScript.forName}.
|
* {@link java.lang.Character.UnicodeScript#forName(String) UnicodeScript.forName}.
|
||||||
*
|
*
|
||||||
* <p>
|
* <p>
|
||||||
* <b><a name="ubc">Blocks</a></b> are specified with the prefix {@code In}, as in
|
* <b><a id="ubc">Blocks</a></b> are specified with the prefix {@code In}, as in
|
||||||
* {@code InMongolian}, or by using the keyword {@code block} (or its short
|
* {@code InMongolian}, or by using the keyword {@code block} (or its short
|
||||||
* form {@code blk}) as in {@code block=Mongolian} or {@code blk=Mongolian}.
|
* form {@code blk}) as in {@code block=Mongolian} or {@code blk=Mongolian}.
|
||||||
* <p>
|
* <p>
|
||||||
|
@ -603,7 +603,7 @@ import java.util.stream.StreamSupport;
|
||||||
* {@link java.lang.Character.UnicodeBlock#forName(String) UnicodeBlock.forName}.
|
* {@link java.lang.Character.UnicodeBlock#forName(String) UnicodeBlock.forName}.
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* <b><a name="ucc">Categories</a></b> may be specified with the optional prefix {@code Is}:
|
* <b><a id="ucc">Categories</a></b> may be specified with the optional prefix {@code Is}:
|
||||||
* Both {@code \p{L}} and {@code \p{IsL}} denote the category of Unicode
|
* Both {@code \p{L}} and {@code \p{IsL}} denote the category of Unicode
|
||||||
* letters. Same as scripts and blocks, categories can also be specified
|
* letters. Same as scripts and blocks, categories can also be specified
|
||||||
* by using the keyword {@code general_category} (or its short form
|
* by using the keyword {@code general_category} (or its short form
|
||||||
|
@ -616,7 +616,7 @@ import java.util.stream.StreamSupport;
|
||||||
* defined in the Standard, both normative and informative.
|
* defined in the Standard, both normative and informative.
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* <b><a name="ubpc">Binary properties</a></b> are specified with the prefix {@code Is}, as in
|
* <b><a id="ubpc">Binary properties</a></b> are specified with the prefix {@code Is}, as in
|
||||||
* {@code IsAlphabetic}. The supported binary properties by {@code Pattern}
|
* {@code IsAlphabetic}. The supported binary properties by {@code Pattern}
|
||||||
* are
|
* are
|
||||||
* <ul>
|
* <ul>
|
||||||
|
@ -687,7 +687,7 @@ import java.util.stream.StreamSupport;
|
||||||
* <td>A non-word character: {@code [^\w]}</td></tr>
|
* <td>A non-word character: {@code [^\w]}</td></tr>
|
||||||
* </table>
|
* </table>
|
||||||
* <p>
|
* <p>
|
||||||
* <a name="jcc">
|
* <a id="jcc">
|
||||||
* Categories that behave like the java.lang.Character
|
* Categories that behave like the java.lang.Character
|
||||||
* boolean is<i>methodname</i> methods (except for the deprecated ones) are
|
* boolean is<i>methodname</i> methods (except for the deprecated ones) are
|
||||||
* available through the same <code>\p{</code><i>prop</i><code>}</code> syntax where
|
* available through the same <code>\p{</code><i>prop</i><code>}</code> syntax where
|
||||||
|
|
|
@ -33,7 +33,7 @@ import java.util.Map;
|
||||||
* An abstract class for service providers that provide localized string
|
* An abstract class for service providers that provide localized string
|
||||||
* representations (display names) of {@code Calendar} field values.
|
* representations (display names) of {@code Calendar} field values.
|
||||||
*
|
*
|
||||||
* <p><a name="calendartypes"><b>Calendar Types</b></a>
|
* <p><a id="calendartypes"><b>Calendar Types</b></a>
|
||||||
*
|
*
|
||||||
* <p>Calendar types are used to specify calendar systems for which the {@link
|
* <p>Calendar types are used to specify calendar systems for which the {@link
|
||||||
* #getDisplayName(String, int, int, int, Locale) getDisplayName} and {@link
|
* #getDisplayName(String, int, int, int, Locale) getDisplayName} and {@link
|
||||||
|
|
|
@ -94,7 +94,7 @@
|
||||||
* <p>Additional stream sources can be provided by third-party libraries using
|
* <p>Additional stream sources can be provided by third-party libraries using
|
||||||
* <a href="package-summary.html#StreamSources">these techniques</a>.
|
* <a href="package-summary.html#StreamSources">these techniques</a>.
|
||||||
*
|
*
|
||||||
* <h2><a name="StreamOps">Stream operations and pipelines</a></h2>
|
* <h2><a id="StreamOps">Stream operations and pipelines</a></h2>
|
||||||
*
|
*
|
||||||
* <p>Stream operations are divided into <em>intermediate</em> and
|
* <p>Stream operations are divided into <em>intermediate</em> and
|
||||||
* <em>terminal</em> operations, and are combined to form <em>stream
|
* <em>terminal</em> operations, and are combined to form <em>stream
|
||||||
|
@ -159,7 +159,7 @@
|
||||||
* is a necessary, but not sufficient, condition for the processing of an infinite
|
* is a necessary, but not sufficient, condition for the processing of an infinite
|
||||||
* stream to terminate normally in finite time.
|
* stream to terminate normally in finite time.
|
||||||
*
|
*
|
||||||
* <h3><a name="Parallelism">Parallelism</a></h3>
|
* <h3><a id="Parallelism">Parallelism</a></h3>
|
||||||
*
|
*
|
||||||
* <p>Processing elements with an explicit {@code for-}loop is inherently serial.
|
* <p>Processing elements with an explicit {@code for-}loop is inherently serial.
|
||||||
* Streams facilitate parallel execution by reframing the computation as a pipeline of
|
* Streams facilitate parallel execution by reframing the computation as a pipeline of
|
||||||
|
@ -206,7 +206,7 @@
|
||||||
* as {@link java.util.function.Function}, and are often lambda expressions or
|
* as {@link java.util.function.Function}, and are often lambda expressions or
|
||||||
* method references.
|
* method references.
|
||||||
*
|
*
|
||||||
* <h3><a name="NonInterference">Non-interference</a></h3>
|
* <h3><a id="NonInterference">Non-interference</a></h3>
|
||||||
*
|
*
|
||||||
* Streams enable you to execute possibly-parallel aggregate operations over a
|
* Streams enable you to execute possibly-parallel aggregate operations over a
|
||||||
* variety of data sources, including even non-thread-safe collections such as
|
* variety of data sources, including even non-thread-safe collections such as
|
||||||
|
@ -252,7 +252,7 @@
|
||||||
* <a href="package-summary.html#StreamSources">Low-level stream
|
* <a href="package-summary.html#StreamSources">Low-level stream
|
||||||
* construction</a> for requirements for building well-behaved streams.
|
* construction</a> for requirements for building well-behaved streams.
|
||||||
*
|
*
|
||||||
* <h3><a name="Statelessness">Stateless behaviors</a></h3>
|
* <h3><a id="Statelessness">Stateless behaviors</a></h3>
|
||||||
*
|
*
|
||||||
* Stream pipeline results may be nondeterministic or incorrect if the behavioral
|
* Stream pipeline results may be nondeterministic or incorrect if the behavioral
|
||||||
* parameters to the stream operations are <em>stateful</em>. A stateful lambda
|
* parameters to the stream operations are <em>stateful</em>. A stateful lambda
|
||||||
|
@ -280,7 +280,7 @@
|
||||||
* parameters to stream operations entirely; there is usually a way to
|
* parameters to stream operations entirely; there is usually a way to
|
||||||
* restructure the stream pipeline to avoid statefulness.
|
* restructure the stream pipeline to avoid statefulness.
|
||||||
*
|
*
|
||||||
* <h3><a name="SideEffects">Side-effects</a></h3>
|
* <h3><a id="SideEffects">Side-effects</a></h3>
|
||||||
*
|
*
|
||||||
* Side-effects in behavioral parameters to stream operations are, in general,
|
* Side-effects in behavioral parameters to stream operations are, in general,
|
||||||
* discouraged, as they can often lead to unwitting violations of the
|
* discouraged, as they can often lead to unwitting violations of the
|
||||||
|
@ -349,7 +349,7 @@
|
||||||
* .collect(Collectors.toList()); // No side-effects!
|
* .collect(Collectors.toList()); // No side-effects!
|
||||||
* }</pre>
|
* }</pre>
|
||||||
*
|
*
|
||||||
* <h3><a name="Ordering">Ordering</a></h3>
|
* <h3><a id="Ordering">Ordering</a></h3>
|
||||||
*
|
*
|
||||||
* <p>Streams may or may not have a defined <em>encounter order</em>. Whether
|
* <p>Streams may or may not have a defined <em>encounter order</em>. Whether
|
||||||
* or not a stream has an encounter order depends on the source and the
|
* or not a stream has an encounter order depends on the source and the
|
||||||
|
@ -388,7 +388,7 @@
|
||||||
* However, most stream pipelines, such as the "sum of weight of blocks" example
|
* However, most stream pipelines, such as the "sum of weight of blocks" example
|
||||||
* above, still parallelize efficiently even under ordering constraints.
|
* above, still parallelize efficiently even under ordering constraints.
|
||||||
*
|
*
|
||||||
* <h2><a name="Reduction">Reduction operations</a></h2>
|
* <h2><a id="Reduction">Reduction operations</a></h2>
|
||||||
*
|
*
|
||||||
* A <em>reduction</em> operation (also called a <em>fold</em>) takes a sequence
|
* A <em>reduction</em> operation (also called a <em>fold</em>) takes a sequence
|
||||||
* of input elements and combines them into a single summary result by repeated
|
* of input elements and combines them into a single summary result by repeated
|
||||||
|
@ -493,7 +493,7 @@
|
||||||
* significant work can be optimized away by combining mapping and reducing
|
* significant work can be optimized away by combining mapping and reducing
|
||||||
* into a single function.
|
* into a single function.
|
||||||
*
|
*
|
||||||
* <h3><a name="MutableReduction">Mutable reduction</a></h3>
|
* <h3><a id="MutableReduction">Mutable reduction</a></h3>
|
||||||
*
|
*
|
||||||
* A <em>mutable reduction operation</em> accumulates input elements into a
|
* A <em>mutable reduction operation</em> accumulates input elements into a
|
||||||
* mutable result container, such as a {@code Collection} or {@code StringBuilder},
|
* mutable result container, such as a {@code Collection} or {@code StringBuilder},
|
||||||
|
@ -620,7 +620,7 @@
|
||||||
* but in some cases equivalence may be relaxed to account for differences in
|
* but in some cases equivalence may be relaxed to account for differences in
|
||||||
* order.
|
* order.
|
||||||
*
|
*
|
||||||
* <h3><a name="ConcurrentReduction">Reduction, concurrency, and ordering</a></h3>
|
* <h3><a id="ConcurrentReduction">Reduction, concurrency, and ordering</a></h3>
|
||||||
*
|
*
|
||||||
* With some complex reduction operations, for example a {@code collect()} that
|
* With some complex reduction operations, for example a {@code collect()} that
|
||||||
* produces a {@code Map}, such as:
|
* produces a {@code Map}, such as:
|
||||||
|
@ -675,7 +675,7 @@
|
||||||
* We would then be constrained to implement either a sequential reduction or
|
* We would then be constrained to implement either a sequential reduction or
|
||||||
* a merge-based parallel reduction.
|
* a merge-based parallel reduction.
|
||||||
*
|
*
|
||||||
* <h3><a name="Associativity">Associativity</a></h3>
|
* <h3><a id="Associativity">Associativity</a></h3>
|
||||||
*
|
*
|
||||||
* An operator or function {@code op} is <em>associative</em> if the following
|
* An operator or function {@code op} is <em>associative</em> if the following
|
||||||
* holds:
|
* holds:
|
||||||
|
@ -693,7 +693,7 @@
|
||||||
* <p>Examples of associative operations include numeric addition, min, and
|
* <p>Examples of associative operations include numeric addition, min, and
|
||||||
* max, and string concatenation.
|
* max, and string concatenation.
|
||||||
*
|
*
|
||||||
* <h2><a name="StreamSources">Low-level stream construction</a></h2>
|
* <h2><a id="StreamSources">Low-level stream construction</a></h2>
|
||||||
*
|
*
|
||||||
* So far, all the stream examples have used methods like
|
* So far, all the stream examples have used methods like
|
||||||
* {@link java.util.Collection#stream()} or {@link java.util.Arrays#stream(Object[])}
|
* {@link java.util.Collection#stream()} or {@link java.util.Arrays#stream(Object[])}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue