mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8300133: Use generalized see and link tags in core libs
Reviewed-by: jjg, mchung, naoto, smarks
This commit is contained in:
parent
2a46e07f7d
commit
7bf0d1465e
10 changed files with 88 additions and 107 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2000, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -73,8 +73,8 @@ public interface CharSequence {
|
|||
* indexing.
|
||||
*
|
||||
* <p>If the {@code char} value specified by the index is a
|
||||
* <a href="{@docRoot}/java.base/java/lang/Character.html#unicode">surrogate</a>, the surrogate
|
||||
* value is returned.
|
||||
* {@linkplain Character##unicode surrogate}, the surrogate value
|
||||
* is returned.
|
||||
*
|
||||
* @param index the index of the {@code char} value to be returned
|
||||
*
|
||||
|
@ -132,9 +132,9 @@ public interface CharSequence {
|
|||
|
||||
/**
|
||||
* Returns a stream of {@code int} zero-extending the {@code char} values
|
||||
* from this sequence. Any char which maps to a <a
|
||||
* href="{@docRoot}/java.base/java/lang/Character.html#unicode">surrogate code
|
||||
* point</a> is passed through uninterpreted.
|
||||
* from this sequence. Any char which maps to a
|
||||
* {@linkplain Character##unicode surrogate code point} is passed
|
||||
* through uninterpreted.
|
||||
*
|
||||
* <p>The stream binds to this sequence when the terminal stream operation
|
||||
* commences (specifically, for mutable sequences the spliterator for the
|
||||
|
|
|
@ -4067,9 +4067,9 @@ public final class String
|
|||
|
||||
/**
|
||||
* Returns a stream of {@code int} zero-extending the {@code char} values
|
||||
* from this sequence. Any char which maps to a <a
|
||||
* href="{@docRoot}/java.base/java/lang/Character.html#unicode">surrogate code
|
||||
* point</a> is passed through uninterpreted.
|
||||
* from this sequence. Any char which maps to a {@linkplain
|
||||
* Character##unicode surrogate code point} is passed through
|
||||
* uninterpreted.
|
||||
*
|
||||
* @return an IntStream of char values from this sequence
|
||||
* @since 9
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2014, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -48,8 +48,8 @@ import jdk.internal.vm.annotation.Stable;
|
|||
|
||||
/**
|
||||
* A configuration that is the result of <a href="package-summary.html#resolution">
|
||||
* resolution</a> or resolution with
|
||||
* <a href="{@docRoot}/java.base/java/lang/module/Configuration.html#service-binding">service binding</a>.
|
||||
* resolution</a> or resolution with {@linkplain
|
||||
* Configuration##service-binding service binding}.
|
||||
*
|
||||
* <p> A configuration encapsulates the <em>readability graph</em> that is the
|
||||
* output of resolution. A readability graph is a directed graph whose vertices
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -3102,9 +3102,8 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
* @apiNote
|
||||
* Note: this class has a natural ordering that is inconsistent with equals.
|
||||
* The behavior of comparing the result of this method for
|
||||
* equality to 0 is analogous to checking the <a
|
||||
* href="{@docRoot}/java.base/java/lang/Double.html#fpNumericalEq">numerical
|
||||
* equality</a> of {@code double} values.
|
||||
* equality to 0 is analogous to checking the {@linkplain
|
||||
* Double##fpNumericalEq numerical equality} of {@code double} values.
|
||||
*
|
||||
* @param val {@code BigDecimal} to which this {@code BigDecimal} is
|
||||
* to be compared.
|
||||
|
@ -3197,9 +3196,9 @@ public class BigDecimal extends Number implements Comparable<BigDecimal> {
|
|||
* HALF_UP)} which evaluates to 0.7 and <br>
|
||||
* {@code new BigDecimal("2.00").divide(BigDecimal.valueOf(3),
|
||||
* HALF_UP)} which evaluates to 0.67.
|
||||
* The behavior of this method is analogous to checking the <a
|
||||
* href="{@docRoot}/java.base/java/lang/Double.html#repEquivalence">representation
|
||||
* equivalence</a> of {@code double} values.
|
||||
* The behavior of this method is analogous to checking the
|
||||
* {@linkplain Double##repEquivalence representation equivalence}
|
||||
* of {@code double} values.
|
||||
*
|
||||
* @param x {@code Object} to which this {@code BigDecimal} is
|
||||
* to be compared.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2021, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -41,8 +41,8 @@ import java.util.ServiceLoader;
|
|||
*
|
||||
* <p> A given invocation of the Java virtual machine maintains a single
|
||||
* system-wide resolver instance, which is used by
|
||||
* <a href="{@docRoot}/java.base/java/net/InetAddress.html#host-name-resolution">
|
||||
* InetAddress</a>. It is set after the VM is fully initialized and when an
|
||||
* {@linkplain InetAddress##host-name-resolution
|
||||
* InetAddress}. It is set after the VM is fully initialized and when an
|
||||
* invocation of a method in {@link InetAddress} class triggers the first lookup
|
||||
* operation.
|
||||
*
|
||||
|
@ -60,8 +60,8 @@ import java.util.ServiceLoader;
|
|||
* method. The returned {@code InetAddressResolver} will be set as the
|
||||
* system-wide resolver.
|
||||
* <li>If the previous step fails to find any resolver provider the
|
||||
* <a href="{@docRoot}/java.base/java/net/InetAddress.html#built-in-resolver">
|
||||
* built-in resolver</a> will be set as the system-wide resolver.
|
||||
* {@linkplain InetAddress##built-in-resolver
|
||||
* built-in resolver} will be set as the system-wide resolver.
|
||||
* </ol>
|
||||
*
|
||||
* <p> If instantiating a custom resolver from a provider discovered in
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -280,10 +280,10 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* element
|
||||
* @throws ClassCastException if the type of the specified element
|
||||
* is incompatible with this collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* collection does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean contains(Object o);
|
||||
|
||||
|
@ -463,10 +463,10 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @return {@code true} if an element was removed as a result of this call
|
||||
* @throws ClassCastException if the type of the specified element
|
||||
* is incompatible with this collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* collection does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws UnsupportedOperationException if the {@code remove} operation
|
||||
* is not supported by this collection
|
||||
*/
|
||||
|
@ -485,11 +485,11 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @throws ClassCastException if the types of one or more elements
|
||||
* in the specified collection are incompatible with this
|
||||
* collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified collection contains one
|
||||
* or more null elements and this collection does not permit null
|
||||
* elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>),
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* or if the specified collection is null.
|
||||
* @see #contains(Object)
|
||||
*/
|
||||
|
@ -535,11 +535,11 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @throws ClassCastException if the types of one or more elements
|
||||
* in this collection are incompatible with the specified
|
||||
* collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if this collection contains one or more
|
||||
* null elements and the specified collection does not support
|
||||
* null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>),
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* or if the specified collection is null
|
||||
* @see #remove(Object)
|
||||
* @see #contains(Object)
|
||||
|
@ -594,11 +594,11 @@ public interface Collection<E> extends Iterable<E> {
|
|||
* @throws ClassCastException if the types of one or more elements
|
||||
* in this collection are incompatible with the specified
|
||||
* collection
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if this collection contains one or more
|
||||
* null elements and the specified collection does not permit null
|
||||
* elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>),
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* or if the specified collection is null
|
||||
* @see #remove(Object)
|
||||
* @see #contains(Object)
|
||||
|
|
|
@ -363,10 +363,10 @@ public interface Deque<E> extends Queue<E> {
|
|||
* @return {@code true} if an element was removed as a result of this call
|
||||
* @throws ClassCastException if the class of the specified element
|
||||
* is incompatible with this deque
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* deque does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean removeFirstOccurrence(Object o);
|
||||
|
||||
|
@ -382,10 +382,10 @@ public interface Deque<E> extends Queue<E> {
|
|||
* @return {@code true} if an element was removed as a result of this call
|
||||
* @throws ClassCastException if the class of the specified element
|
||||
* is incompatible with this deque
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* deque does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean removeLastOccurrence(Object o);
|
||||
|
||||
|
@ -565,10 +565,10 @@ public interface Deque<E> extends Queue<E> {
|
|||
* @return {@code true} if an element was removed as a result of this call
|
||||
* @throws ClassCastException if the class of the specified element
|
||||
* is incompatible with this deque
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* deque does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean remove(Object o);
|
||||
|
||||
|
@ -581,10 +581,10 @@ public interface Deque<E> extends Queue<E> {
|
|||
* @return {@code true} if this deque contains the specified element
|
||||
* @throws ClassCastException if the class of the specified element
|
||||
* is incompatible with this deque
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified element is null and this
|
||||
* deque does not permit null elements
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean contains(Object o);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1997, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -188,11 +188,9 @@ public interface Map<K, V> {
|
|||
* @return {@code true} if this map contains a mapping for the specified
|
||||
* key
|
||||
* @throws ClassCastException if the key is of an inappropriate type for
|
||||
* this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key is null and this map
|
||||
* does not permit null keys
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* does not permit null keys ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean containsKey(Object key);
|
||||
|
||||
|
@ -208,11 +206,9 @@ public interface Map<K, V> {
|
|||
* @return {@code true} if this map maps one or more keys to the
|
||||
* specified value
|
||||
* @throws ClassCastException if the value is of an inappropriate type for
|
||||
* this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified value is null and this
|
||||
* map does not permit null values
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* map does not permit null values ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
boolean containsValue(Object value);
|
||||
|
||||
|
@ -236,11 +232,9 @@ public interface Map<K, V> {
|
|||
* @return the value to which the specified key is mapped, or
|
||||
* {@code null} if this map contains no mapping for the key
|
||||
* @throws ClassCastException if the key is of an inappropriate type for
|
||||
* this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key is null and this map
|
||||
* does not permit null keys
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* does not permit null keys ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
V get(Object key);
|
||||
|
||||
|
@ -296,11 +290,9 @@ public interface Map<K, V> {
|
|||
* @throws UnsupportedOperationException if the {@code remove} operation
|
||||
* is not supported by this map
|
||||
* @throws ClassCastException if the key is of an inappropriate type for
|
||||
* this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key is null and this
|
||||
* map does not permit null keys
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* map does not permit null keys ({@linkplain Collection##optional-restrictions optional})
|
||||
*/
|
||||
V remove(Object key);
|
||||
|
||||
|
@ -662,11 +654,9 @@ public interface Map<K, V> {
|
|||
* @return the value to which the specified key is mapped, or
|
||||
* {@code defaultValue} if this map contains no mapping for the key
|
||||
* @throws ClassCastException if the key is of an inappropriate type for
|
||||
* this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key is null and this map
|
||||
* does not permit null keys
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* does not permit null keys ({@linkplain Collection##optional-restrictions optional})
|
||||
* @since 1.8
|
||||
*/
|
||||
default V getOrDefault(Object key, V defaultValue) {
|
||||
|
@ -740,13 +730,13 @@ public interface Map<K, V> {
|
|||
* is not supported by this map's entry set iterator.
|
||||
* @throws ClassCastException if the class of a replacement value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified function is null, or if a
|
||||
* replacement value is null and this map does not permit null values
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of a replacement value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ConcurrentModificationException if an entry is found to be
|
||||
* removed during iteration
|
||||
* @since 1.8
|
||||
|
@ -806,16 +796,15 @@ public interface Map<K, V> {
|
|||
* if the implementation supports null values.)
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the key or value is of an inappropriate
|
||||
* type for this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* type for this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key or value is null,
|
||||
* and this map does not permit null keys or values
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of the specified key
|
||||
* or value prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @since 1.8
|
||||
*/
|
||||
default V putIfAbsent(K key, V value) {
|
||||
|
@ -852,13 +841,13 @@ public interface Map<K, V> {
|
|||
* @return {@code true} if the value was removed
|
||||
* @throws UnsupportedOperationException if the {@code remove} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the key or value is of an inappropriate
|
||||
* type for this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key or value is null,
|
||||
* and this map does not permit null keys or values
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @since 1.8
|
||||
*/
|
||||
default boolean remove(Object key, Object value) {
|
||||
|
@ -900,15 +889,13 @@ public interface Map<K, V> {
|
|||
* @param newValue value to be associated with the specified key
|
||||
* @return {@code true} if the value was replaced
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* is not supported by this map ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the class of a specified key or value
|
||||
* prevents it from being stored in this map
|
||||
* @throws NullPointerException if a specified key or newValue is null,
|
||||
* and this map does not permit null keys or values
|
||||
* @throws NullPointerException if oldValue is null and this map does not
|
||||
* permit null values
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* permit null values ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of a specified key
|
||||
* or value prevents it from being stored in this map
|
||||
* @since 1.8
|
||||
|
@ -951,10 +938,10 @@ public interface Map<K, V> {
|
|||
* if the implementation supports null values.)
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the class of the specified key or value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key or value is null,
|
||||
* and this map does not permit null keys or values
|
||||
* @throws IllegalArgumentException if some property of the specified key
|
||||
|
@ -1034,13 +1021,13 @@ public interface Map<K, V> {
|
|||
* is null
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the class of the specified key or value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of the specified key
|
||||
* or value prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @since 1.8
|
||||
*/
|
||||
default V computeIfAbsent(K key,
|
||||
|
@ -1111,13 +1098,13 @@ public interface Map<K, V> {
|
|||
* remappingFunction is null
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the class of the specified key or value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of the specified key
|
||||
* or value prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @since 1.8
|
||||
*/
|
||||
default V computeIfPresent(K key,
|
||||
|
@ -1197,13 +1184,13 @@ public interface Map<K, V> {
|
|||
* remappingFunction is null
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the class of the specified key or value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of the specified key
|
||||
* or value prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @since 1.8
|
||||
*/
|
||||
default V compute(K key,
|
||||
|
@ -1292,13 +1279,13 @@ public interface Map<K, V> {
|
|||
* value is associated with the key
|
||||
* @throws UnsupportedOperationException if the {@code put} operation
|
||||
* is not supported by this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws ClassCastException if the class of the specified key or value
|
||||
* prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws IllegalArgumentException if some property of the specified key
|
||||
* or value prevents it from being stored in this map
|
||||
* (<a href="{@docRoot}/java.base/java/util/Collection.html#optional-restrictions">optional</a>)
|
||||
* ({@linkplain Collection##optional-restrictions optional})
|
||||
* @throws NullPointerException if the specified key is null and this map
|
||||
* does not support null keys or the value or remappingFunction is
|
||||
* null
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2023, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -251,10 +251,9 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
|
|||
* Only non-encapsulated resource bundles of "{@code java.class}"
|
||||
* or "{@code java.properties}" format are searched.
|
||||
*
|
||||
* <p>If the caller module is a
|
||||
* <a href="{@docRoot}/java.base/java/util/spi/ResourceBundleProvider.html#obtain-resource-bundle">
|
||||
* resource bundle provider</a>, it does not fall back to the
|
||||
* class loader search.
|
||||
* <p>If the caller module is a {@linkplain
|
||||
* ResourceBundleProvider##obtain-resource-bundle resource bundle
|
||||
* provider}, it does not fall back to the class loader search.
|
||||
*
|
||||
* <p>
|
||||
* In cases where the {@code getBundle} factory method is called from a context
|
||||
|
@ -267,8 +266,8 @@ import static sun.security.util.SecurityConstants.GET_CLASSLOADER_PERMISSION;
|
|||
* A common format of resource bundles is in {@linkplain PropertyResourceBundle
|
||||
* .properties} file format. Typically {@code .properties} resource bundles
|
||||
* are packaged in a JAR file. Resource bundle only JAR file can be readily
|
||||
* deployed as an <a href="{@docRoot}/java.base/java/lang/module/ModuleFinder.html#automatic-modules">
|
||||
* automatic module</a>. For example, if the JAR file contains the
|
||||
* deployed as an {@linkplain java.lang.module.ModuleFinder##automatic-modules
|
||||
* automatic module}. For example, if the JAR file contains the
|
||||
* entry "{@code p/q/Foo_ja.properties}" and no {@code .class} entry,
|
||||
* when resolved and defined as an automatic module, no package is derived
|
||||
* for this module. This allows resource bundles in {@code .properties}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue