/[classpath]/classpath/java/util/AbstractCollection.java
ViewVC logotype

Diff of /classpath/java/util/AbstractCollection.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.14 by mark, Tue Jan 22 22:27:01 2002 UTC revision 1.15 by gnu_andrew, Tue Aug 17 22:19:56 2004 UTC
# Line 129  public abstract class AbstractCollection Line 129  public abstract class AbstractCollection
129     * @return true if the add operation caused the Collection to change     * @return true if the add operation caused the Collection to change
130     * @throws UnsupportedOperationException if the add operation is not     * @throws UnsupportedOperationException if the add operation is not
131     *         supported on this collection     *         supported on this collection
132     * @throws NullPointerException if this collection does not support null,     * @throws NullPointerException if the specified collection is null
133     *         or if the specified collection is null     * @throws ClassCastException if the type of any element in c is
134     * @throws ClassCastException if an object in c is of the wrong type     *         not a valid type for addition.
135     * @throws IllegalArgumentException if some aspect of an object in c prevents     * @throws IllegalArgumentException if some aspect of any element
136     *         it from being added     *         in c prevents it being added.
137       * @throws NullPointerException if any element in c is null and this
138       *         collection doesn't allow null values.
139     * @see #add(Object)     * @see #add(Object)
140     */     */
141    public boolean addAll(Collection c)    public boolean addAll(Collection c)
# Line 268  public abstract class AbstractCollection Line 270  public abstract class AbstractCollection
270     * @return true if the remove operation caused the Collection to change     * @return true if the remove operation caused the Collection to change
271     * @throws UnsupportedOperationException if this collection's Iterator     * @throws UnsupportedOperationException if this collection's Iterator
272     *         does not support the remove method     *         does not support the remove method
273       * @throws NullPointerException if the collection, c, is null.
274     * @see Iterator#remove()     * @see Iterator#remove()
275     */     */
276    public boolean removeAll(Collection c)    public boolean removeAll(Collection c)
# Line 288  public abstract class AbstractCollection Line 291  public abstract class AbstractCollection
291     * @return true if the remove operation caused the Collection to change     * @return true if the remove operation caused the Collection to change
292     * @throws UnsupportedOperationException if this collection's Iterator     * @throws UnsupportedOperationException if this collection's Iterator
293     *         does not support the remove method     *         does not support the remove method
294       * @throws NullPointerException if the collection, c, is null.
295     * @see Iterator#remove()     * @see Iterator#remove()
296     */     */
297      // Package visible for use throughout java.util.
298    boolean removeAllInternal(Collection c)    boolean removeAllInternal(Collection c)
299    {    {
300      Iterator itr = iterator();      Iterator itr = iterator();
# Line 316  public abstract class AbstractCollection Line 321  public abstract class AbstractCollection
321     * @return true if the remove operation caused the Collection to change     * @return true if the remove operation caused the Collection to change
322     * @throws UnsupportedOperationException if this collection's Iterator     * @throws UnsupportedOperationException if this collection's Iterator
323     *         does not support the remove method     *         does not support the remove method
324       * @throws NullPointerException if the collection, c, is null.
325     * @see Iterator#remove()     * @see Iterator#remove()
326     */     */
327    public boolean retainAll(Collection c)    public boolean retainAll(Collection c)
# Line 337  public abstract class AbstractCollection Line 343  public abstract class AbstractCollection
343     * @return true if the remove operation caused the Collection to change     * @return true if the remove operation caused the Collection to change
344     * @throws UnsupportedOperationException if this collection's Iterator     * @throws UnsupportedOperationException if this collection's Iterator
345     *         does not support the remove method     *         does not support the remove method
346       * @throws NullPointerException if the collection, c, is null.
347     * @see Iterator#remove()     * @see Iterator#remove()
348     */     */
349      // Package visible for use throughout java.util.
350    boolean retainAllInternal(Collection c)    boolean retainAllInternal(Collection c)
351    {    {
352      Iterator itr = iterator();      Iterator itr = iterator();

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26