diff --git a/jdk/src/share/classes/java/util/ArrayList.java b/jdk/src/share/classes/java/util/ArrayList.java
index 2211cc8f10d..b7d5349cc00 100644
--- a/jdk/src/share/classes/java/util/ArrayList.java
+++ b/jdk/src/share/classes/java/util/ArrayList.java
@@ -70,9 +70,9 @@ import java.util.function.UnaryOperator;
* unsynchronized access to the list:
* List list = Collections.synchronizedList(new ArrayList(...));
*
- *
+ *
* The iterators returned by this class's {@link #iterator() iterator} and
- * {@link #listIterator(int) listIterator} methods are fail-fast:
+ * {@link #listIterator(int) listIterator} methods are fail-fast:
* if the list is structurally modified at any time after the iterator is
* created, in any way except through the iterator's own
* {@link ListIterator#remove() remove} or
diff --git a/jdk/src/share/classes/java/util/Arrays.java b/jdk/src/share/classes/java/util/Arrays.java
index 3e81c11b8f1..47c99ef7f82 100644
--- a/jdk/src/share/classes/java/util/Arrays.java
+++ b/jdk/src/share/classes/java/util/Arrays.java
@@ -984,6 +984,7 @@ public class Arrays {
* {@link ForkJoinPool#commonPool() ForkJoin common pool} is used to
* execute any parallel tasks.
*
+ * @param the class of the objects to be sorted
* @param a the array to be sorted
*
* @throws ClassCastException if the array contains elements that are not
@@ -1035,6 +1036,7 @@ public class Arrays {
* array. The {@link ForkJoinPool#commonPool() ForkJoin common pool} is
* used to execute any parallel tasks.
*
+ * @param the class of the objects to be sorted
* @param a the array to be sorted
* @param fromIndex the index of the first element (inclusive) to be
* sorted
@@ -1087,6 +1089,7 @@ public class Arrays {
* {@link ForkJoinPool#commonPool() ForkJoin common pool} is used to
* execute any parallel tasks.
*
+ * @param the class of the objects to be sorted
* @param a the array to be sorted
* @param cmp the comparator to determine the order of the array. A
* {@code null} value indicates that the elements'
@@ -1138,6 +1141,7 @@ public class Arrays {
* array. The {@link ForkJoinPool#commonPool() ForkJoin common pool} is
* used to execute any parallel tasks.
*
+ * @param the class of the objects to be sorted
* @param a the array to be sorted
* @param fromIndex the index of the first element (inclusive) to be
* sorted
@@ -1412,6 +1416,7 @@ public class Arrays {
* Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474,
* January 1993.
*
+ * @param the class of the objects to be sorted
* @param a the array to be sorted
* @param c the comparator to determine the order of the array. A
* {@code null} value indicates that the elements'
@@ -1475,6 +1480,7 @@ public class Arrays {
* Fourth Annual ACM-SIAM Symposium on Discrete Algorithms, pp 467-474,
* January 1993.
*
+ * @param the class of the objects to be sorted
* @param a the array to be sorted
* @param fromIndex the index of the first element (inclusive) to be
* sorted
@@ -1569,6 +1575,7 @@ public class Arrays {
* Parallel prefix computation is usually more efficient than
* sequential loops for large arrays.
*
+ * @param the class of the objects in the array
* @param array the array, which is modified in-place by this method
* @param op a side-effect-free, associative function to perform the
* cumulation
@@ -1585,6 +1592,7 @@ public class Arrays {
* Performs {@link #parallelPrefix(Object[], BinaryOperator)}
* for the given subrange of the array.
*
+ * @param the class of the objects in the array
* @param array the array
* @param fromIndex the index of the first element, inclusive
* @param toIndex the index of the last element, exclusive
@@ -2437,6 +2445,7 @@ public class Arrays {
* elements equal to the specified object, there is no guarantee which one
* will be found.
*
+ * @param the class of the objects in the array
* @param a the array to be searched
* @param key the value to be searched for
* @param c the comparator by which the array is ordered. A
@@ -2472,6 +2481,7 @@ public class Arrays {
* If the range contains multiple elements equal to the specified object,
* there is no guarantee which one will be found.
*
+ * @param the class of the objects in the array
* @param a the array to be searched
* @param fromIndex the index of the first element (inclusive) to be
* searched
@@ -3143,6 +3153,7 @@ public class Arrays {
* is greater than that of the original array.
* The resulting array is of exactly the same class as the original array.
*
+ * @param the class of the objects in the array
* @param original the array to be copied
* @param newLength the length of the copy to be returned
* @return a copy of the original array, truncated or padded with nulls
@@ -3166,6 +3177,8 @@ public class Arrays {
* is greater than that of the original array.
* The resulting array is of the class newType.
*
+ * @param the class of the objects in the original array
+ * @param the class of the objects in the returned array
* @param original the array to be copied
* @param newLength the length of the copy to be returned
* @param newType the class of the copy to be returned
@@ -3396,6 +3409,7 @@ public class Arrays {
*
* The resulting array is of exactly the same class as the original array.
*
+ * @param the class of the objects in the array
* @param original the array from which a range is to be copied
* @param from the initial index of the range to be copied, inclusive
* @param to the final index of the range to be copied, exclusive.
@@ -3428,6 +3442,8 @@ public class Arrays {
* of the returned array will be to - from.
* The resulting array is of the class newType.
*
+ * @param the class of the objects in the original array
+ * @param the class of the objects in the returned array
* @param original the array from which a range is to be copied
* @param from the initial index of the range to be copied, inclusive
* @param to the final index of the range to be copied, exclusive.
@@ -3760,6 +3776,7 @@ public class Arrays {
* List<String> stooges = Arrays.asList("Larry", "Moe", "Curly");
*
*
+ * @param the class of the objects in the array
* @param a the array by which the list will be backed
* @return a list view of the specified array
*/
diff --git a/jdk/src/share/classes/java/util/Base64.java b/jdk/src/share/classes/java/util/Base64.java
index 2dbaf921a52..39da03b7e3c 100644
--- a/jdk/src/share/classes/java/util/Base64.java
+++ b/jdk/src/share/classes/java/util/Base64.java
@@ -42,24 +42,21 @@ import java.nio.charset.StandardCharsets;
*
*
*
- *
- * - Basic
+ *
- Basic
*
Uses "The Base64 Alphabet" as specified in Table 1 of
* RFC 4648 and RFC 2045 for encoding and decoding operation.
* The encoder does not add any line feed (line separator)
* character. The decoder rejects data that contains characters
* outside the base64 alphabet.
*
- *
- * - URL and Filename safe
+ *
- URL and Filename safe
*
Uses the "URL and Filename safe Base64 Alphabet" as specified
* in Table 2 of RFC 4648 for encoding and decoding. The
* encoder does not add any line feed (line separator) character.
* The decoder rejects data that contains characters outside the
* base64 alphabet.
*
- *
- * - MIME
+ *
- MIME
*
Uses the "The Base64 Alphabet" as specified in Table 1 of
* RFC 2045 for encoding and decoding operation. The encoded output
* must be represented in lines of no more than 76 characters each
diff --git a/jdk/src/share/classes/java/util/BitSet.java b/jdk/src/share/classes/java/util/BitSet.java
index 35ecf70ea25..c7c3143221f 100644
--- a/jdk/src/share/classes/java/util/BitSet.java
+++ b/jdk/src/share/classes/java/util/BitSet.java
@@ -189,6 +189,7 @@ public class BitSet implements Cloneable, java.io.Serializable {
* @param longs a long array containing a little-endian representation
* of a sequence of bits to be used as the initial bits of the
* new bit set
+ * @return a {@code BitSet} containing all the bits in the long array
* @since 1.7
*/
public static BitSet valueOf(long[] longs) {
@@ -212,6 +213,8 @@ public class BitSet implements Cloneable, java.io.Serializable {
* @param lb a long buffer containing a little-endian representation
* of a sequence of bits between its position and limit, to be
* used as the initial bits of the new bit set
+ * @return a {@code BitSet} containing all the bits in the buffer in the
+ * specified range
* @since 1.7
*/
public static BitSet valueOf(LongBuffer lb) {
@@ -237,6 +240,7 @@ public class BitSet implements Cloneable, java.io.Serializable {
* @param bytes a byte array containing a little-endian
* representation of a sequence of bits to be used as the
* initial bits of the new bit set
+ * @return a {@code BitSet} containing all the bits in the byte array
* @since 1.7
*/
public static BitSet valueOf(byte[] bytes) {
@@ -257,6 +261,8 @@ public class BitSet implements Cloneable, java.io.Serializable {
* @param bb a byte buffer containing a little-endian representation
* of a sequence of bits between its position and limit, to be
* used as the initial bits of the new bit set
+ * @return a {@code BitSet} containing all the bits in the buffer in the
+ * specified range
* @since 1.7
*/
public static BitSet valueOf(ByteBuffer bb) {
diff --git a/jdk/src/share/classes/java/util/Calendar.java b/jdk/src/share/classes/java/util/Calendar.java
index 566b8b090be..076b59db52c 100644
--- a/jdk/src/share/classes/java/util/Calendar.java
+++ b/jdk/src/share/classes/java/util/Calendar.java
@@ -96,7 +96,7 @@ import sun.util.spi.CalendarProvider;
* concrete subclass, such as ERA
. See individual field
* documentation and subclass documentation for details.
*
- *
Getting and Setting Calendar Field Values
+ * Getting and Setting Calendar Field Values
*
* The calendar field values can be set by calling the set
* methods. Any field values set in a Calendar
will not be
@@ -207,7 +207,7 @@ import sun.util.spi.CalendarProvider;
*
Field Manipulation
*
* The calendar fields can be changed using three methods:
- * set()
, add()
, and roll()
.
+ * set()
, add()
, and roll()
.
*
* set(f, value)
changes calendar field
* f
to value
. In addition, it sets an
@@ -2024,6 +2024,7 @@ public abstract class Calendar implements Serializable, Cloneable, Comparableget method call.
*
+ * @param field the calendar field to test
* @return true
if the given calendar field has a value set;
* false
otherwise.
*/
diff --git a/jdk/src/share/classes/java/util/Collection.java b/jdk/src/share/classes/java/util/Collection.java
index 17ab7347dc0..7fe7a75bc44 100644
--- a/jdk/src/share/classes/java/util/Collection.java
+++ b/jdk/src/share/classes/java/util/Collection.java
@@ -64,9 +64,9 @@ import java.util.stream.StreamSupport;
* but is not required to, throw the exception if the collection to be added
* is empty.
*
- *
+ *
* Some collection implementations have restrictions on the elements that
- * they may contain. For example, some implementations prohibit null elements,
+ * they may contain. For example, some implementations prohibit null elements,
* and some have restrictions on the types of their elements. Attempting to
* add an ineligible element throws an unchecked exception, typically
* NullPointerException or ClassCastException. Attempting
@@ -232,6 +232,7 @@ public interface Collection extends Iterable {
* Note that toArray(new Object[0]) is identical in function to
* toArray().
*
+ * @param the runtime type of the array to contain the collection
* @param a the array into which the elements of this collection are to be
* stored, if it is big enough; otherwise, a new array of the same
* runtime type is allocated for this purpose.
@@ -537,7 +538,6 @@ public interface Collection extends Iterable {
* @return a {@code Spliterator} over the elements in this collection
* @since 1.8
*/
- @Override
default Spliterator spliterator() {
return Spliterators.spliterator(this, 0);
}
diff --git a/jdk/src/share/classes/java/util/Collections.java b/jdk/src/share/classes/java/util/Collections.java
index f56af07fd1b..43ce42eeea6 100644
--- a/jdk/src/share/classes/java/util/Collections.java
+++ b/jdk/src/share/classes/java/util/Collections.java
@@ -150,6 +150,7 @@ public class Collections {
* n2 log(n) performance that would result from attempting
* to sort a linked list in place.
*
+ * @param the class of the objects in the list
* @param list the list to be sorted.
* @throws ClassCastException if the list contains elements that are not
* mutually comparable (for example, strings and integers).
@@ -211,6 +212,7 @@ public class Collections {
* n2 log(n) performance that would result from attempting
* to sort a linked list in place.
*
+ * @param the class of the objects in the list
* @param list the list to be sorted.
* @param c the comparator to determine the order of the list. A
* {@code null} value indicates that the elements' natural
@@ -249,6 +251,7 @@ public class Collections {
* this method will do an iterator-based binary search that performs
* O(n) link traversals and O(log n) element comparisons.
*
+ * @param the class of the objects in the list
* @param list the list to be searched.
* @param key the key to be searched for.
* @return the index of the search key, if it is contained in the list;
@@ -349,6 +352,7 @@ public class Collections {
* this method will do an iterator-based binary search that performs
* O(n) link traversals and O(log n) element comparisons.
*
+ * @param the class of the objects in the list
* @param list the list to be searched.
* @param key the key to be searched for.
* @param c the comparator by which the list is ordered.
@@ -568,6 +572,7 @@ public class Collections {
*
* This method runs in linear time.
*
+ * @param the class of the objects in the list
* @param list the list to be filled with the specified element.
* @param obj The element with which to fill the specified list.
* @throws UnsupportedOperationException if the specified list or its
@@ -597,6 +602,7 @@ public class Collections {
*
* This method runs in linear time.
*
+ * @param the class of the objects in the lists
* @param dest The destination list.
* @param src The source list.
* @throws IndexOutOfBoundsException if the destination list is too small
@@ -635,6 +641,7 @@ public class Collections {
* This method iterates over the entire collection, hence it requires
* time proportional to the size of the collection.
*
+ * @param the class of the objects in the collection
* @param coll the collection whose minimum element is to be determined.
* @return the minimum element of the given collection, according
* to the natural ordering of its elements.
@@ -667,6 +674,7 @@ public class Collections {
* This method iterates over the entire collection, hence it requires
* time proportional to the size of the collection.
*
+ * @param the class of the objects in the collection
* @param coll the collection whose minimum element is to be determined.
* @param comp the comparator with which to determine the minimum element.
* A null value indicates that the elements' natural
@@ -706,6 +714,7 @@ public class Collections {
* This method iterates over the entire collection, hence it requires
* time proportional to the size of the collection.
*
+ * @param the class of the objects in the collection
* @param coll the collection whose maximum element is to be determined.
* @return the maximum element of the given collection, according
* to the natural ordering of its elements.
@@ -738,6 +747,7 @@ public class Collections {
* This method iterates over the entire collection, hence it requires
* time proportional to the size of the collection.
*
+ * @param the class of the objects in the collection
* @param coll the collection whose maximum element is to be determined.
* @param comp the comparator with which to determine the maximum element.
* A null value indicates that the elements' natural
@@ -872,6 +882,7 @@ public class Collections {
* (oldVal==null ? e==null : oldVal.equals(e)).
* (This method has no effect on the size of the list.)
*
+ * @param the class of the objects in the list
* @param list the list in which replacement is to occur.
* @param oldVal the old value to be replaced.
* @param newVal the new value with which oldVal is to be
@@ -1053,6 +1064,7 @@ public class Collections {
* The returned collection will be serializable if the specified collection
* is serializable.
*
+ * @param the class of the objects in the collection
* @param c the collection for which an unmodifiable view is to be
* returned.
* @return an unmodifiable view of the specified collection.
@@ -1148,6 +1160,7 @@ public class Collections {
* The returned set will be serializable if the specified set
* is serializable.
*
+ * @param the class of the objects in the set
* @param s the set for which an unmodifiable view is to be returned.
* @return an unmodifiable view of the specified set.
*/
@@ -1179,6 +1192,7 @@ public class Collections {
* The returned sorted set will be serializable if the specified sorted set
* is serializable.
*
+ * @param the class of the objects in the set
* @param s the sorted set for which an unmodifiable view is to be
* returned.
* @return an unmodifiable view of the specified sorted set.
@@ -1226,6 +1240,7 @@ public class Collections {
* The returned navigable set will be serializable if the specified
* navigable set is serializable.
*
+ * @param the class of the objects in the set
* @param s the navigable set for which an unmodifiable view is to be
* returned
* @return an unmodifiable view of the specified navigable set
@@ -1314,6 +1329,7 @@ public class Collections {
* is serializable. Similarly, the returned list will implement
* {@link RandomAccess} if the specified list does.
*
+ * @param the class of the objects in the list
* @param list the list for which an unmodifiable view is to be returned.
* @return an unmodifiable view of the specified list.
*/
@@ -1458,6 +1474,8 @@ public class Collections {
* The returned map will be serializable if the specified map
* is serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the map for which an unmodifiable view is to be returned.
* @return an unmodifiable view of the specified map.
*/
@@ -1807,6 +1825,8 @@ public class Collections {
* The returned sorted map will be serializable if the specified sorted map
* is serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the sorted map for which an unmodifiable view is to be
* returned.
* @return an unmodifiable view of the specified sorted map.
@@ -1849,6 +1869,8 @@ public class Collections {
* The returned navigable map will be serializable if the specified
* navigable map is serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the navigable map for which an unmodifiable view is to be
* returned
* @return an unmodifiable view of the specified navigable map
@@ -2002,6 +2024,7 @@ public class Collections {
* The returned collection will be serializable if the specified collection
* is serializable.
*
+ * @param the class of the objects in the collection
* @param c the collection to be "wrapped" in a synchronized collection.
* @return a synchronized view of the specified collection.
*/
@@ -2117,6 +2140,7 @@ public class Collections {
* The returned set will be serializable if the specified set is
* serializable.
*
+ * @param the class of the objects in the set
* @param s the set to be "wrapped" in a synchronized set.
* @return a synchronized view of the specified set.
*/
@@ -2187,6 +2211,7 @@ public class Collections {
* The returned sorted set will be serializable if the specified
* sorted set is serializable.
*
+ * @param the class of the objects in the set
* @param s the sorted set to be "wrapped" in a synchronized sorted set.
* @return a synchronized view of the specified sorted set.
*/
@@ -2277,6 +2302,7 @@ public class Collections {
* The returned navigable set will be serializable if the specified
* navigable set is serializable.
*
+ * @param the class of the objects in the set
* @param s the navigable set to be "wrapped" in a synchronized navigable
* set
* @return a synchronized view of the specified navigable set
@@ -2379,6 +2405,7 @@ public class Collections {
* The returned list will be serializable if the specified list is
* serializable.
*
+ * @param the class of the objects in the list
* @param list the list to be "wrapped" in a synchronized list.
* @return a synchronized view of the specified list.
*/
@@ -2548,6 +2575,8 @@ public class Collections {
* The returned map will be serializable if the specified map is
* serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the map to be "wrapped" in a synchronized map.
* @return a synchronized view of the specified map.
*/
@@ -2738,6 +2767,8 @@ public class Collections {
* The returned sorted map will be serializable if the specified
* sorted map is serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the sorted map to be "wrapped" in a synchronized sorted map.
* @return a synchronized view of the specified sorted map.
*/
@@ -2833,6 +2864,8 @@ public class Collections {
* The returned navigable map will be serializable if the specified
* navigable map is serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the navigable map to be "wrapped" in a synchronized navigable
* map
* @return a synchronized view of the specified navigable map.
@@ -3008,6 +3041,7 @@ public class Collections {
* type, the returned collection permits insertion of null elements
* whenever the backing collection does.
*
+ * @param the class of the objects in the collection
* @param c the collection for which a dynamically typesafe view is to be
* returned
* @param type the type of element that {@code c} is permitted to hold
@@ -3153,6 +3187,7 @@ public class Collections {
* type, the returned queue permits insertion of {@code null} elements
* whenever the backing queue does.
*
+ * @param the class of the objects in the queue
* @param queue the queue for which a dynamically typesafe view is to be
* returned
* @param type the type of element that {@code queue} is permitted to hold
@@ -3211,6 +3246,7 @@ public class Collections {
* type, the returned set permits insertion of null elements whenever
* the backing set does.
*
+ * @param the class of the objects in the set
* @param s the set for which a dynamically typesafe view is to be
* returned
* @param type the type of element that {@code s} is permitted to hold
@@ -3256,6 +3292,7 @@ public class Collections {
* type, the returned sorted set permits insertion of null elements
* whenever the backing sorted set does.
*
+ * @param the class of the objects in the set
* @param s the sorted set for which a dynamically typesafe view is to be
* returned
* @param type the type of element that {@code s} is permitted to hold
@@ -3318,6 +3355,7 @@ public class Collections {
* type, the returned navigable set permits insertion of null elements
* whenever the backing sorted set does.
*
+ * @param the class of the objects in the set
* @param s the navigable set for which a dynamically typesafe view is to be
* returned
* @param type the type of element that {@code s} is permitted to hold
@@ -3398,6 +3436,7 @@ public class Collections {
* type, the returned list permits insertion of null elements whenever
* the backing list does.
*
+ * @param the class of the objects in the list
* @param list the list for which a dynamically typesafe view is to be
* returned
* @param type the type of element that {@code list} is permitted to hold
@@ -3535,6 +3574,8 @@ public class Collections {
* type, the returned map permits insertion of null keys or values
* whenever the backing map does.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the map for which a dynamically typesafe view is to be
* returned
* @param keyType the type of key that {@code m} is permitted to hold
@@ -3928,6 +3969,8 @@ public class Collections {
* type, the returned map permits insertion of null keys or values
* whenever the backing map does.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param m the map for which a dynamically typesafe view is to be
* returned
* @param keyType the type of key that {@code m} is permitted to hold
@@ -4149,17 +4192,13 @@ public class Collections {
/**
* Returns an iterator that has no elements. More precisely,
*
- *
- *
+ *
* - {@link Iterator#hasNext hasNext} always returns {@code
- * false}.
- *
+ * false}.
* - {@link Iterator#next next} always throws {@link
- * NoSuchElementException}.
- *
+ * NoSuchElementException}.
* - {@link Iterator#remove remove} always throws {@link
- * IllegalStateException}.
- *
+ * IllegalStateException}.
*
*
* Implementations of this method are permitted, but not
@@ -4190,27 +4229,20 @@ public class Collections {
/**
* Returns a list iterator that has no elements. More precisely,
*
- *
- *
+ *
* - {@link Iterator#hasNext hasNext} and {@link
* ListIterator#hasPrevious hasPrevious} always return {@code
- * false}.
- *
+ * false}.
* - {@link Iterator#next next} and {@link ListIterator#previous
- * previous} always throw {@link NoSuchElementException}.
- *
+ * previous} always throw {@link NoSuchElementException}.
* - {@link Iterator#remove remove} and {@link ListIterator#set
- * set} always throw {@link IllegalStateException}.
- *
+ * set} always throw {@link IllegalStateException}.
* - {@link ListIterator#add add} always throws {@link
- * UnsupportedOperationException}.
- *
+ * UnsupportedOperationException}.
* - {@link ListIterator#nextIndex nextIndex} always returns
- * {@code 0} .
- *
+ * {@code 0}.
* - {@link ListIterator#previousIndex previousIndex} always
- * returns {@code -1}.
- *
+ * returns {@code -1}.
*
*
* Implementations of this method are permitted, but not
@@ -4243,19 +4275,17 @@ public class Collections {
/**
* Returns an enumeration that has no elements. More precisely,
*
- *
- *
+ *
* - {@link Enumeration#hasMoreElements hasMoreElements} always
- * returns {@code false}.
- *
+ * returns {@code false}.
* - {@link Enumeration#nextElement nextElement} always throws
- * {@link NoSuchElementException}.
- *
+ * {@link NoSuchElementException}.
*
*
* Implementations of this method are permitted, but not
* required, to return the same object from multiple invocations.
*
+ * @param the class of the objects in the enumeration
* @return an empty enumeration
* @since 1.7
*/
@@ -4293,6 +4323,7 @@ public class Collections {
* comparable cost to using the like-named field. (Unlike this method, the
* field does not provide type safety.)
*
+ * @param the class of the objects in the set
* @return the empty set
*
* @see #EMPTY_SET
@@ -4509,6 +4540,8 @@ public class Collections {
* comparable cost to using the like-named field. (Unlike this method, the
* field does not provide type safety.)
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @return an empty map
* @see #EMPTY_MAP
* @since 1.5
@@ -4529,6 +4562,8 @@ public class Collections {
* @implNote Implementations of this method need not create a separate
* {@code SortedMap} object for each call.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @return an empty sorted map
* @since 1.8
*/
@@ -4548,6 +4583,8 @@ public class Collections {
* @implNote Implementations of this method need not create a separate
* {@code NavigableMap} object for each call.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @return an empty navigable map
* @since 1.8
*/
@@ -4653,6 +4690,7 @@ public class Collections {
* Returns an immutable set containing only the specified object.
* The returned set is serializable.
*
+ * @param the class of the objects in the set
* @param o the sole object to be stored in the returned set.
* @return an immutable set containing only the specified object.
*/
@@ -4773,6 +4811,7 @@ public class Collections {
* Returns an immutable list containing only the specified object.
* The returned list is serializable.
*
+ * @param the class of the objects in the list
* @param o the sole object to be stored in the returned list.
* @return an immutable list containing only the specified object.
* @since 1.3
@@ -4834,6 +4873,8 @@ public class Collections {
* Returns an immutable map, mapping only the specified key to the
* specified value. The returned map is serializable.
*
+ * @param the class of the map keys
+ * @param the class of the map values
* @param key the sole key to be stored in the returned map.
* @param value the value to which the returned map maps key.
* @return an immutable map containing only the specified key-value
@@ -4959,6 +5000,8 @@ public class Collections {
* combination with the List.addAll method to grow lists.
* The returned list is serializable.
*
+ * @param the class of the object to copy and of the objects
+ * in the returned list.
* @param n the number of elements in the returned list.
* @param o the element to appear repeatedly in the returned list.
* @return an immutable list consisting of n copies of the
@@ -5063,6 +5106,7 @@ public class Collections {
*
* The returned comparator is serializable.
*
+ * @param the class of the objects compared by the comparator
* @return A comparator that imposes the reverse of the natural
* ordering on a collection of objects that implement
* the Comparable interface.
@@ -5106,6 +5150,7 @@ public class Collections {
* The returned comparator is serializable (assuming the specified
* comparator is also serializable or {@code null}).
*
+ * @param the class of the objects compared by the comparator
* @param cmp a comparator who's ordering is to be reversed by the returned
* comparator or {@code null}
* @return A comparator that imposes the reverse ordering of the
@@ -5169,6 +5214,7 @@ public class Collections {
* interoperability with legacy APIs that require an enumeration
* as input.
*
+ * @param the class of the objects in the collection
* @param c the collection for which an enumeration is to be returned.
* @return an enumeration over the specified collection.
* @see Enumeration
@@ -5194,6 +5240,7 @@ public class Collections {
* legacy APIs that return enumerations and new APIs that require
* collections.
*
+ * @param the class of the objects returned by the enumeration
* @param e enumeration providing elements for the returned
* array list
* @return an array list containing the elements returned
@@ -5227,6 +5274,7 @@ public class Collections {
* @param c the collection in which to determine the frequency
* of o
* @param o the object whose frequency is to be determined
+ * @return the number of elements in {@code c} equal to {@code o}
* @throws NullPointerException if c is null
* @since 1.5
*/
@@ -5347,6 +5395,7 @@ public class Collections {
* Collections.addAll(flavors, "Peaches 'n Plutonium", "Rocky Racoon");
*
*
+ * @param the class of the elements to add and of the collection
* @param c the collection into which elements are to be inserted
* @param elements the elements to insert into c
* @return true if the collection changed as a result of the call
@@ -5392,6 +5441,8 @@ public class Collections {
* new WeakHashMap<Object, Boolean>());
*
*
+ * @param the class of the map keys and of the objects in the
+ * returned set
* @param map the backing map
* @return the set backed by the map
* @throws IllegalArgumentException if map is not empty
@@ -5470,6 +5521,7 @@ public class Collections {
* implemented as a sequence of {@link Deque#addFirst addFirst}
* invocations on the backing deque.
*
+ * @param the class of the objects in the deque
* @param deque the deque
* @return the queue
* @since 1.6
diff --git a/jdk/src/share/classes/java/util/EnumSet.java b/jdk/src/share/classes/java/util/EnumSet.java
index 039d772094e..6aff2994ebe 100644
--- a/jdk/src/share/classes/java/util/EnumSet.java
+++ b/jdk/src/share/classes/java/util/EnumSet.java
@@ -100,8 +100,10 @@ public abstract class EnumSet> extends AbstractSet
/**
* Creates an empty enum set with the specified element type.
*
+ * @param The class of the elements in the set
* @param elementType the class object of the element type for this enum
* set
+ * @return An empty enum set of the specified type.
* @throws NullPointerException if elementType is null
*/
public static > EnumSet noneOf(Class elementType) {
@@ -119,8 +121,10 @@ public abstract class EnumSet> extends AbstractSet
* Creates an enum set containing all of the elements in the specified
* element type.
*
+ * @param The class of the elements in the set
* @param elementType the class object of the element type for this enum
* set
+ * @return An enum set containing all the elements in the specified type.
* @throws NullPointerException if elementType is null
*/
public static > EnumSet allOf(Class elementType) {
@@ -139,7 +143,9 @@ public abstract class EnumSet> extends AbstractSet
* Creates an enum set with the same element type as the specified enum
* set, initially containing the same elements (if any).
*
+ * @param The class of the elements in the set
* @param s the enum set from which to initialize this enum set
+ * @return A copy of the specified enum set.
* @throws NullPointerException if s is null
*/
public static > EnumSet copyOf(EnumSet s) {
@@ -153,7 +159,9 @@ public abstract class EnumSet> extends AbstractSet
* Otherwise, the specified collection must contain at least one element
* (in order to determine the new enum set's element type).
*
+ * @param The class of the elements in the collection
* @param c the collection from which to initialize this enum set
+ * @return An enum set initialized from the given collection.
* @throws IllegalArgumentException if c is not an
* EnumSet instance and contains no elements
* @throws NullPointerException if c is null
@@ -178,7 +186,9 @@ public abstract class EnumSet> extends AbstractSet
* set, initially containing all the elements of this type that are
* not contained in the specified set.
*
+ * @param The class of the elements in the enum set
* @param s the enum set from whose complement to initialize this enum set
+ * @return The complement of the specified set in this set
* @throws NullPointerException if s is null
*/
public static > EnumSet complementOf(EnumSet s) {
@@ -196,6 +206,7 @@ public abstract class EnumSet> extends AbstractSet
* an enum set initially containing an arbitrary number of elements, but
* is likely to run slower than the overloadings that do not use varargs.
*
+ * @param The class of the specified element and of the set
* @param e the element that this set is to contain initially
* @throws NullPointerException if e is null
* @return an enum set initially containing the specified element
@@ -215,6 +226,7 @@ public abstract class EnumSet> extends AbstractSet
* an enum set initially containing an arbitrary number of elements, but
* is likely to run slower than the overloadings that do not use varargs.
*
+ * @param The class of the parameter elements and of the set
* @param e1 an element that this set is to contain initially
* @param e2 another element that this set is to contain initially
* @throws NullPointerException if any parameters are null
@@ -236,6 +248,7 @@ public abstract class EnumSet> extends AbstractSet
* an enum set initially containing an arbitrary number of elements, but
* is likely to run slower than the overloadings that do not use varargs.
*
+ * @param The class of the parameter elements and of the set
* @param e1 an element that this set is to contain initially
* @param e2 another element that this set is to contain initially
* @param e3 another element that this set is to contain initially
@@ -259,6 +272,7 @@ public abstract class EnumSet> extends AbstractSet
* an enum set initially containing an arbitrary number of elements, but
* is likely to run slower than the overloadings that do not use varargs.
*
+ * @param The class of the parameter elements and of the set
* @param e1 an element that this set is to contain initially
* @param e2 another element that this set is to contain initially
* @param e3 another element that this set is to contain initially
@@ -284,6 +298,7 @@ public abstract class EnumSet> extends AbstractSet
* an enum set initially containing an arbitrary number of elements, but
* is likely to run slower than the overloadings that do not use varargs.
*
+ * @param The class of the parameter elements and of the set
* @param e1 an element that this set is to contain initially
* @param e2 another element that this set is to contain initially
* @param e3 another element that this set is to contain initially
@@ -311,6 +326,7 @@ public abstract class EnumSet> extends AbstractSet
* number of elements, but it is likely to run slower than the overloadings
* that do not use varargs.
*
+ * @param The class of the parameter elements and of the set
* @param first an element that the set is to contain initially
* @param rest the remaining elements the set is to contain initially
* @throws NullPointerException if any of the specified elements are null,
@@ -332,6 +348,7 @@ public abstract class EnumSet> extends AbstractSet
* contain the endpoints themselves, which may be identical but must not
* be out of order.
*
+ * @param The class of the parameter elements and of the set
* @param from the first element in the range
* @param to the last element in the range
* @throws NullPointerException if {@code from} or {@code to} are null
diff --git a/jdk/src/share/classes/java/util/GregorianCalendar.java b/jdk/src/share/classes/java/util/GregorianCalendar.java
index 1f818ed6f64..8381a4fab4b 100644
--- a/jdk/src/share/classes/java/util/GregorianCalendar.java
+++ b/jdk/src/share/classes/java/util/GregorianCalendar.java
@@ -94,7 +94,7 @@ import sun.util.calendar.ZoneInfo;
* adjustment may be made if desired for dates that are prior to the Gregorian
* changeover and which fall between January 1 and March 24.
*
- *
+ *
*
* Values calculated for the {@link Calendar#WEEK_OF_YEAR
* WEEK_OF_YEAR} field range from 1 to 53. The first week of a
diff --git a/jdk/src/share/classes/java/util/Locale.java b/jdk/src/share/classes/java/util/Locale.java
index 69f277659ab..6ecd39393fd 100644
--- a/jdk/src/share/classes/java/util/Locale.java
+++ b/jdk/src/share/classes/java/util/Locale.java
@@ -84,7 +84,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* described below.
*
*
- * - language
+ * - language
*
* - ISO 639 alpha-2 or alpha-3 language code, or registered
* language subtags up to 8 alpha letters (for future enhancements).
@@ -92,51 +92,51 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* alpha-2 code must be used. You can find a full list of valid
* language codes in the IANA Language Subtag Registry (search for
* "Type: language"). The language field is case insensitive, but
- *
Locale
always canonicalizes to lower case.
+ * Locale
always canonicalizes to lower case.
*
* - Well-formed language values have the form
*
[a-zA-Z]{2,8}
. Note that this is not the the full
* BCP47 language production, since it excludes extlang. They are
* not needed since modern three-letter language codes replace
- * them.
+ * them.
*
- * - Example: "en" (English), "ja" (Japanese), "kok" (Konkani)
+ * - Example: "en" (English), "ja" (Japanese), "kok" (Konkani)
*
- * - script
+ * - script
*
* - ISO 15924 alpha-4 script code. You can find a full list of
* valid script codes in the IANA Language Subtag Registry (search
* for "Type: script"). The script field is case insensitive, but
*
Locale
always canonicalizes to title case (the first
* letter is upper case and the rest of the letters are lower
- * case).
+ * case).
*
* - Well-formed script values have the form
- *
[a-zA-Z]{4}
+ * [a-zA-Z]{4}
*
- * - Example: "Latn" (Latin), "Cyrl" (Cyrillic)
+ * - Example: "Latn" (Latin), "Cyrl" (Cyrillic)
*
- * - country (region)
+ * - country (region)
*
* - 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
* IANA Language Subtag Registry (search for "Type: region"). The
* country (region) field is case insensitive, but
- *
Locale
always canonicalizes to upper case.
+ * Locale
always canonicalizes to upper case.
*
* - Well-formed country/region values have
- * the form
[a-zA-Z]{2} | [0-9]{3}
+ * the form [a-zA-Z]{2} | [0-9]{3}
*
* - Example: "US" (United States), "FR" (France), "029"
- * (Caribbean)
+ * (Caribbean)
*
- * - variant
+ * - variant
*
* - Any arbitrary value used to indicate a variation of a
*
Locale
. Where there are two or more variant values
* each indicating its own semantics, these values should be ordered
* by importance, with most important first, separated by
- * underscore('_'). The variant field is case sensitive.
+ * underscore('_'). The variant field is case sensitive.
*
* - Note: IETF BCP 47 places syntactic restrictions on variant
* subtags. Also BCP 47 subtags are strictly used to indicate
@@ -152,16 +152,16 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* cultural behaviors such as calendar type or number script. In
* BCP 47 this kind of information, which does not identify the
* language, is supported by extension subtags or private use
- * subtags.
+ * subtags.
*
* - Well-formed variant values have the form
SUBTAG
* (('_'|'-') SUBTAG)*
where SUBTAG =
* [0-9][0-9a-zA-Z]{3} | [0-9a-zA-Z]{5,8}
. (Note: BCP 47 only
- * uses hyphen ('-') as a delimiter, this is more lenient).
+ * uses hyphen ('-') as a delimiter, this is more lenient).
*
- * - Example: "polyton" (Polytonic Greek), "POSIX"
+ * - Example: "polyton" (Polytonic Greek), "POSIX"
*
- * - extensions
+ * - extensions
*
* - A map from single character keys to string values, indicating
* extensions apart from language identification. The extensions in
@@ -169,14 +169,14 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* extension subtags and private use subtags. The extensions are
* case insensitive, but
Locale
canonicalizes all
* extension keys and values to lower case. Note that extensions
- * cannot have empty values.
+ * cannot have empty values.
*
* - Well-formed keys are single characters from the set
*
[0-9a-zA-Z]
. Well-formed values have the form
* SUBTAG ('-' SUBTAG)*
where for the key 'x'
* SUBTAG = [0-9a-zA-Z]{1,8}
and for other keys
* SUBTAG = [0-9a-zA-Z]{2,8}
(that is, 'x' allows
- * single-character subtags).
+ * single-character subtags).
*
* - Example: key="u"/value="ca-japanese" (Japanese Calendar),
* key="x"/value="java-1-7"
@@ -189,7 +189,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* requirement (is well-formed), but does not validate the value
* itself. See {@link Builder} for details.
*
- *
+ *
*
* UTS#35, "Unicode Locale Data Markup Language" defines optional
* attributes and keywords to override or refine the default behavior
@@ -409,7 +409,7 @@ import sun.util.locale.provider.ResourceBundleBasedAdapter;
* Clients desiring a string representation of the complete locale can
* then always rely on toLanguageTag
for this purpose.
*
- *
Special cases
+ *
*
* For compatibility reasons, two
* non-conforming locales are treated as special cases. These are
@@ -1007,6 +1007,8 @@ public final class Locale implements Cloneable, Serializable {
* country (region), such as 3-letter numeric UN M.49 area codes.
* Therefore, the list returned by this method does not contain ALL valid
* codes that can be used to create Locales.
+ *
+ * @return An array of ISO 3166 two-letter country codes.
*/
public static String[] getISOCountries() {
if (isoCountries == null) {
@@ -1030,6 +1032,8 @@ public final class Locale implements Cloneable, Serializable {
* 8 characters in length. Therefore, the list returned by this method does
* not contain ALL valid codes that can be used to create Locales.
*
+ *
+ * @return Am array of ISO 639 two-letter language codes.
*/
public static String[] getISOLanguages() {
if (isoLanguages == null) {
@@ -1268,15 +1272,15 @@ public final class Locale implements Cloneable, Serializable {
* fields only. To represent a Locale as a String for interchange purposes, use
* {@link #toLanguageTag}.
*
- * Examples:
- * - en
- *
- de_DE
- *
- _GB
- *
- en_US_WIN
- *
- de__POSIX
- *
- zh_CN_#Hans
- *
- zh_TW_#Hant-x-java
- *
- th_TH_TH_#u-nu-thai
+ * Examples:
+ * - en
+ * - de_DE
+ * - _GB
+ * - en_US_WIN
+ * - de__POSIX
+ * - zh_CN_#Hans
+ * - zh_TW_#Hant-x-java
+ * - th_TH_TH_#u-nu-thai
*
* @return A string representation of the Locale, for debugging.
* @see #getDisplayName
@@ -1506,7 +1510,7 @@ public final class Locale implements Cloneable, Serializable {
*
* Grandfathered tags with canonical replacements are as follows:
*
- *
+ *
*
* grandfathered tag | | modern replacement |
* art-lojban | | jbo |
@@ -1535,7 +1539,7 @@ public final class Locale implements Cloneable, Serializable {
* Grandfathered tags with no modern replacement will be
* converted as follows:
*
- *
+ *
*
* grandfathered tag | | converts to |
* cel-gaulish | | xtg-x-cel-gaulish |
@@ -1659,6 +1663,8 @@ public final class Locale implements Cloneable, Serializable {
* (say, we don't have a Japanese name for Croatian),
* this function falls back on the English name, and uses the ISO code as a last-resort
* value. If the locale doesn't specify a language, this function returns the empty string.
+ *
+ * @return The name of the display language.
*/
public final String getDisplayLanguage() {
return getDisplayLanguage(getDefault(Category.DISPLAY));
@@ -1677,6 +1683,8 @@ public final class Locale implements Cloneable, Serializable {
* on the ISO code as a last-resort value. If the locale doesn't specify a language,
* this function returns the empty string.
*
+ * @param inLocale The locale for which to retrieve the display language.
+ * @return The name of the display language appropriate to the given locale.
* @exception NullPointerException if inLocale
is null
*/
public String getDisplayLanguage(Locale inLocale) {
@@ -1703,6 +1711,7 @@ public final class Locale implements Cloneable, Serializable {
* localized for the given locale. Returns the empty string if
* this locale doesn't specify a script code.
*
+ * @param inLocale The locale for which to retrieve the display script.
* @return the display name of the script code for the current default
* {@link Locale.Category#DISPLAY DISPLAY} locale
* @throws NullPointerException if inLocale
is null
@@ -1727,6 +1736,8 @@ public final class Locale implements Cloneable, Serializable {
* (say, we don't have a Japanese name for Croatia),
* this function falls back on the English name, and uses the ISO code as a last-resort
* value. If the locale doesn't specify a country, this function returns the empty string.
+ *
+ * @return The name of the country appropriate to the locale.
*/
public final String getDisplayCountry() {
return getDisplayCountry(getDefault(Category.DISPLAY));
@@ -1745,6 +1756,8 @@ public final class Locale implements Cloneable, Serializable {
* on the ISO code as a last-resort value. If the locale doesn't specify a country,
* this function returns the empty string.
*
+ * @param inLocale The locale for which to retrieve the display country.
+ * @return The name of the country appropriate to the given locale.
* @exception NullPointerException if inLocale
is null
*/
public String getDisplayCountry(Locale inLocale) {
@@ -1778,6 +1791,8 @@ public final class Locale implements Cloneable, Serializable {
* user. If possible, the name will be localized for the default
* {@link Locale.Category#DISPLAY DISPLAY} locale. If the locale
* doesn't specify a variant code, this function returns the empty string.
+ *
+ * @return The name of the display variant code appropriate to the locale.
*/
public final String getDisplayVariant() {
return getDisplayVariant(getDefault(Category.DISPLAY));
@@ -1788,6 +1803,8 @@ public final class Locale implements Cloneable, Serializable {
* user. If possible, the name will be localized for inLocale. If the locale
* doesn't specify a variant code, this function returns the empty string.
*
+ * @param inLocale The locale for which to retrieve the display variant code.
+ * @return The name of the display variant code appropriate to the given locale.
* @exception NullPointerException if inLocale
is null
*/
public String getDisplayVariant(Locale inLocale) {
@@ -1821,6 +1838,8 @@ public final class Locale implements Cloneable, Serializable {
* depending on which fields are specified in the locale. If the
* language, sacript, country, and variant fields are all empty,
* this function returns the empty string.
+ *
+ * @return The name of the locale appropriate to display.
*/
public final String getDisplayName() {
return getDisplayName(getDefault(Category.DISPLAY));
@@ -1844,6 +1863,8 @@ public final class Locale implements Cloneable, Serializable {
* language, script, country, and variant fields are all empty,
* this function returns the empty string.
*
+ * @param inLocale The locale for which to retrieve the display name.
+ * @return The name of the locale appropriate to display.
* @throws NullPointerException if inLocale
is null
*/
public String getDisplayName(Locale inLocale) {
@@ -2672,7 +2693,7 @@ public final class Locale implements Cloneable, Serializable {
*
* The filtering method will behave as follows:
*
- *
+ *
*
* Filtering Mode |
* Language Priority List: {@code "de-DE"} |
diff --git a/jdk/src/share/classes/java/util/ResourceBundle.java b/jdk/src/share/classes/java/util/ResourceBundle.java
index 1d9d80b90a4..b16174d30b7 100644
--- a/jdk/src/share/classes/java/util/ResourceBundle.java
+++ b/jdk/src/share/classes/java/util/ResourceBundle.java
@@ -74,7 +74,7 @@ import sun.util.locale.LocaleObjectCache;
*
*
* This allows you to write programs that can:
- *
+ *
* - be easily localized, or translated, into different languages
*
- handle multiple locales at once
*
- be easily modified later to support even more locales
@@ -184,7 +184,7 @@ import sun.util.locale.LocaleObjectCache;
* subclass. Your subclasses must override two methods:
handleGetObject
* and getKeys()
.
*
- * ResourceBundle.Control
+ * ResourceBundle.Control
*
* The {@link ResourceBundle.Control} class provides information necessary
* to perform the bundle loading process by the getBundle
@@ -195,7 +195,7 @@ import sun.util.locale.LocaleObjectCache;
* {@link #getBundle(String, Locale, ClassLoader, Control) getBundle}
* factory method for details.
*
- * For the {@code getBundle} factory
+ * For the {@code getBundle} factory
* methods that take no {@link Control} instance, their default behavior of resource bundle loading
* can be modified with installed {@link
@@ -206,7 +206,7 @@ import sun.util.locale.LocaleObjectCache;
* more than one service provider installed for supporting the same base name,
* the first one returned from {@link ServiceLoader} will be used.
*
- *
Cache Management
+ * Cache Management
*
* Resource bundle instances created by the getBundle
factory
* methods are cached by default, and the factory methods return the same
@@ -222,7 +222,7 @@ import sun.util.locale.LocaleObjectCache;
* Control#needsReload(String, Locale, String, ClassLoader, ResourceBundle,
* long) ResourceBundle.Control.needsReload} for details.
*
- * Example
+ * Example
*
* The following is a very simple example of a ResourceBundle
* subclass, MyResources
, that manages two resources (for a larger number of
@@ -878,8 +878,8 @@ public abstract class ResourceBundle {
* description of modifying the default
* behavior.
*
- *
The following describes the default
- * behavior.
+ *
The following describes the default
+ * behavior.
*
*
getBundle
uses the base name, the specified locale, and
* the default locale (obtained from {@link java.util.Locale#getDefault()
@@ -974,8 +974,8 @@ public abstract class ResourceBundle {
*
If still no result bundle is found, the base name alone is looked up. If
* this still fails, a MissingResourceException
is thrown.
*
- *
Once a result resource bundle has been found,
- * its parent chain is instantiated. If the result bundle already
+ *
Once a result resource bundle has been found,
+ * its parent chain is instantiated. If the result bundle already
* has a parent (perhaps because it was returned from a cache) the chain is
* complete.
*
@@ -1004,8 +1004,8 @@ public abstract class ResourceBundle {
* path name (using "/") instead of a fully qualified class name (using
* ".").
*
- *
- * Example:
+ *
+ * Example:
*
* The following class and property files are provided:
*
@@ -1026,7 +1026,7 @@ public abstract class ResourceBundle {
* Calling getBundle
with the locale arguments below will
* instantiate resource bundles as follows:
*
- *
+ *
* Locale("fr", "CH") | MyResources_fr_CH.class, parent MyResources_fr.properties, parent MyResources.class |
* Locale("fr", "FR") | MyResources_fr.properties, parent MyResources.class |
* Locale("de", "DE") | MyResources_en.properties, parent MyResources.class |
@@ -1106,45 +1106,45 @@ public abstract class ResourceBundle {
* control.newBundle
.
*
*
- *
+ * border="0" cellpadding="2" cellspacing="2" summary="locale-format combinations for newBundle">
+ *
*
* Locale
+ * style="vertical-align: top; text-align: left; font-weight: bold; width: 50%;">Locale
* |
* format
+ * style="vertical-align: top; text-align: left; font-weight: bold; width: 50%;">format
* |
*
*
- * Locale("de", "DE")
+ * | Locale("de", "DE")
* |
- * java.class
+ * | java.class
* |
*
*
- * Locale("de", "DE") |
- * java.properties
+ * | Locale("de", "DE") |
+ * java.properties
* |
*
*
- * Locale("de") |
- * java.class |
+ * Locale("de") |
+ * java.class |
*
*
- * Locale("de") |
- * java.properties |
+ * Locale("de") |
+ * java.properties |
*
*
- * Locale("")
+ * | Locale("")
* |
- * java.class |
+ * java.class |
*
*
- * Locale("") |
- * java.properties |
+ * Locale("") |
+ * java.properties |
*
- *
+ *
*
*
*
@@ -2199,11 +2199,11 @@ public abstract class ResourceBundle {
* one by one as below:
*
*
- * - [L, C, V]
- *
- [L, C]
- *
- [L]
- *
-
Locale.ROOT
- *
+ * - [L, C, V]
+ * - [L, C]
+ * - [L]
+ * -
Locale.ROOT
+ *
*
* - For an input
Locale
with a non-empty script value,
* append candidate Locale
s by omitting the final component
@@ -2211,14 +2211,14 @@ public abstract class ResourceBundle {
* Locale
with country and variant restored:
*
*
- * - [L, S, C, V]
- *
- [L, S, C]
- *
- [L, S]
- *
- [L, C, V]
- *
- [L, C]
- *
- [L]
- *
-
Locale.ROOT
- *
+ * - [L, S, C, V]
+ * - [L, S, C]
+ * - [L, S]
+ * - [L, C, V]
+ * - [L, C]
+ * - [L]
+ * -
Locale.ROOT
+ *
*
* - For an input
Locale
with a variant value consisting
* of multiple subtags separated by underscore, generate candidate
@@ -2228,16 +2228,16 @@ public abstract class ResourceBundle {
* the variant consists of two subtags V1 and V2:
*
*
- * - [L, S, C, V1, V2]
- *
- [L, S, C, V1]
- *
- [L, S, C]
- *
- [L, S]
- *
- [L, C, V1, V2]
- *
- [L, C, V1]
- *
- [L, C]
- *
- [L]
- *
-
Locale.ROOT
- *
+ * - [L, S, C, V1, V2]
+ * - [L, S, C, V1]
+ * - [L, S, C]
+ * - [L, S]
+ * - [L, C, V1, V2]
+ * - [L, C, V1]
+ * - [L, C]
+ * - [L]
+ * -
Locale.ROOT
+ *
*
* - Special cases for Chinese. When an input
Locale
has the
* language "zh" (Chinese) and an empty script value, either "Hans" (Simplified) or
@@ -2248,21 +2248,21 @@ public abstract class ResourceBundle {
* is empty, no script is supplied. For example, for Locale("zh", "CN")
*
, the candidate list will be:
*
- * - [L("zh"), S("Hans"), C("CN")]
- *
- [L("zh"), S("Hans")]
- *
- [L("zh"), C("CN")]
- *
- [L("zh")]
- *
-
Locale.ROOT
+ * - [L("zh"), S("Hans"), C("CN")]
+ * - [L("zh"), S("Hans")]
+ * - [L("zh"), C("CN")]
+ * - [L("zh")]
+ * -
Locale.ROOT
*
*
* For Locale("zh", "TW")
, the candidate list will be:
*
- * - [L("zh"), S("Hant"), C("TW")]
- *
- [L("zh"), S("Hant")]
- *
- [L("zh"), C("TW")]
- *
- [L("zh")]
- *
-
Locale.ROOT
- *
+ * - [L("zh"), S("Hant"), C("TW")]
+ * - [L("zh"), S("Hant")]
+ * - [L("zh"), C("TW")]
+ * - [L("zh")]
+ * -
Locale.ROOT
+ *
*
* - Special cases for Norwegian. Both
Locale("no", "NO",
* "NY")
and Locale("nn", "NO")
represent Norwegian
@@ -2270,10 +2270,10 @@ public abstract class ResourceBundle {
* list is generated up to [L("nn")], and then the following
* candidates are added:
*
- * - [L("no"), C("NO"), V("NY")]
- *
- [L("no"), C("NO")]
- *
- [L("no")]
- *
-
Locale.ROOT
+ * - [L("no"), C("NO"), V("NY")]
+ * - [L("no"), C("NO")]
+ * - [L("no")]
+ * -
Locale.ROOT
*
*
* If the locale is exactly Locale("no", "NO", "NY")
, it is first
@@ -2290,20 +2290,18 @@ public abstract class ResourceBundle {
* candidate list:
*
*
- * - [L("nb"), C("NO"), V("POSIX")]
- *
- [L("no"), C("NO"), V("POSIX")]
- *
- [L("nb"), C("NO")]
- *
- [L("no"), C("NO")]
- *
- [L("nb")]
- *
- [L("no")]
- *
-
Locale.ROOT
+ * - [L("nb"), C("NO"), V("POSIX")]
+ * - [L("no"), C("NO"), V("POSIX")]
+ * - [L("nb"), C("NO")]
+ * - [L("no"), C("NO")]
+ * - [L("nb")]
+ * - [L("no")]
+ * -
Locale.ROOT
*
*
* Locale("no", "NO", "POSIX")
would generate the same list
* except that locales with "no" would appear before the corresponding
* locales with "nb".
- *
- *
*
*
* The default implementation uses an {@link ArrayList} that