1
1
/*
2
- * Copyright (c) 1997, 2018 , Oracle and/or its affiliates. All rights reserved.
2
+ * Copyright (c) 1997, 2023 , Oracle and/or its affiliates. All rights reserved.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -280,10 +280,10 @@ public interface Collection<E> extends Iterable<E> {
280
280
* element
281
281
* @throws ClassCastException if the type of the specified element
282
282
* is incompatible with this collection
283
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
283
+ * ({@linkplain Collection## optional-restrictions optional} )
284
284
* @throws NullPointerException if the specified element is null and this
285
285
* collection does not permit null elements
286
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
286
+ * ({@linkplain Collection## optional-restrictions optional} )
287
287
*/
288
288
boolean contains (Object o );
289
289
@@ -463,10 +463,10 @@ default <T> T[] toArray(IntFunction<T[]> generator) {
463
463
* @return {@code true} if an element was removed as a result of this call
464
464
* @throws ClassCastException if the type of the specified element
465
465
* is incompatible with this collection
466
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
466
+ * ({@linkplain Collection## optional-restrictions optional} )
467
467
* @throws NullPointerException if the specified element is null and this
468
468
* collection does not permit null elements
469
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
469
+ * ({@linkplain Collection## optional-restrictions optional} )
470
470
* @throws UnsupportedOperationException if the {@code remove} operation
471
471
* is not supported by this collection
472
472
*/
@@ -485,11 +485,11 @@ default <T> T[] toArray(IntFunction<T[]> generator) {
485
485
* @throws ClassCastException if the types of one or more elements
486
486
* in the specified collection are incompatible with this
487
487
* collection
488
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
488
+ * ({@linkplain Collection## optional-restrictions optional} )
489
489
* @throws NullPointerException if the specified collection contains one
490
490
* or more null elements and this collection does not permit null
491
491
* elements
492
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a>),
492
+ * ({@linkplain Collection## optional-restrictions optional})
493
493
* or if the specified collection is null.
494
494
* @see #contains(Object)
495
495
*/
@@ -535,11 +535,11 @@ default <T> T[] toArray(IntFunction<T[]> generator) {
535
535
* @throws ClassCastException if the types of one or more elements
536
536
* in this collection are incompatible with the specified
537
537
* collection
538
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
538
+ * ({@linkplain Collection## optional-restrictions optional} )
539
539
* @throws NullPointerException if this collection contains one or more
540
540
* null elements and the specified collection does not support
541
541
* null elements
542
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a>),
542
+ * ({@linkplain Collection## optional-restrictions optional})
543
543
* or if the specified collection is null
544
544
* @see #remove(Object)
545
545
* @see #contains(Object)
@@ -594,11 +594,11 @@ default boolean removeIf(Predicate<? super E> filter) {
594
594
* @throws ClassCastException if the types of one or more elements
595
595
* in this collection are incompatible with the specified
596
596
* collection
597
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a> )
597
+ * ({@linkplain Collection## optional-restrictions optional} )
598
598
* @throws NullPointerException if this collection contains one or more
599
599
* null elements and the specified collection does not permit null
600
600
* elements
601
- * (<a href="{@docRoot}/java.base/java/util/ Collection.html# optional-restrictions"> optional</a>),
601
+ * ({@linkplain Collection## optional-restrictions optional})
602
602
* or if the specified collection is null
603
603
* @see #remove(Object)
604
604
* @see #contains(Object)
0 commit comments