1 |
|
/* |
2 |
< |
* Copyright 1994-2007 Sun Microsystems, Inc. All Rights Reserved. |
2 |
> |
* Copyright (c) 1994, 2008, Oracle and/or its affiliates. All rights reserved. |
3 |
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
|
* |
5 |
|
* This code is free software; you can redistribute it and/or modify it |
18 |
|
* 2 along with this work; if not, write to the Free Software Foundation, |
19 |
|
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
20 |
|
* |
21 |
< |
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, |
22 |
< |
* CA 95054 USA or visit www.sun.com if you need additional information or |
23 |
< |
* have any questions. |
21 |
> |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
> |
* or visit www.oracle.com if you need additional information or have any |
23 |
> |
* questions. |
24 |
|
*/ |
25 |
|
|
26 |
|
package java.util; |
64 |
|
* |
65 |
|
* <p>As of the Java 2 platform v1.2, this class was retrofitted to |
66 |
|
* implement the {@link List} interface, making it a member of the |
67 |
< |
* <a href="{@docRoot}/../technotes/guides/collections/index.html"> Java |
68 |
< |
* Collections Framework</a>. Unlike the new collection |
69 |
< |
* implementations, {@code Vector} is synchronized. |
67 |
> |
* <a href="{@docRoot}/../technotes/guides/collections/index.html"> |
68 |
> |
* Java Collections Framework</a>. Unlike the new collection |
69 |
> |
* implementations, {@code Vector} is synchronized. If a thread-safe |
70 |
> |
* implementation is not needed, it is recommended to use {@link |
71 |
> |
* ArrayList} in place of {@code Vector}. |
72 |
|
* |
73 |
|
* @author Lee Boynton |
74 |
|
* @author Jonathan Payne |
75 |
|
* @see Collection |
74 |
– |
* @see List |
75 |
– |
* @see ArrayList |
76 |
|
* @see LinkedList |
77 |
|
* @since JDK1.0 |
78 |
|
*/ |
896 |
|
* elements (optional), or if the specified collection is null |
897 |
|
* @since 1.2 |
898 |
|
*/ |
899 |
< |
public synchronized boolean retainAll(Collection<?> c) { |
899 |
> |
public synchronized boolean retainAll(Collection<?> c) { |
900 |
|
return super.retainAll(c); |
901 |
|
} |
902 |
|
|