API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. AbstractCollection View Source
Author(s)
Josh Bloch
Neal Gafter
Since
1.2
Version
1.38, 06/16/06
Serial
Hierarchy
 Object
      AbstractCollection
Implements
 Collection
Subclasses
Description
publicabstract abstract class AbstractCollection
  This class provides a skeletal implementation of the Collection interface, to minimize the effort required to implement this interface.
See also:    Collection
Constructors
protected AbstractCollection ()
  Sole constructor.
Methods
Hide/Show inherited methods
public boolean add ( E e) [Specified in Collection]
  Ensures that this collection contains the specified element (optional operation).
public boolean addAll (Collection<Object> c) [Specified in Collection]
  Adds all of the elements in the specified collection to this collection (optional operation).
public void clear () [Specified in Collection]
  Removes all of the elements from this collection (optional operation).
public boolean contains (Object o) [Specified in Collection]
  Returns true if this collection contains the specified element.
public boolean containsAll (Collection<Object> c) [Specified in Collection]
  Returns true if this collection contains all of the elements in the specified collection.
public boolean isEmpty () [Specified in Collection]
  Returns true if this collection contains no elements.
publicabstract Iterator< E> iterator () [Specified in Collection]
  Returns an iterator over the elements contained in this collection.
public boolean remove (Object o) [Specified in Collection]
  Removes a single instance of the specified element from this collection, if it is present (optional operation).
public boolean removeAll (Collection<Object> c) [Specified in Collection]
  Removes all of this collection's elements that are also contained in the specified collection (optional operation).
public boolean retainAll (Collection<Object> c) [Specified in Collection]
  Retains only the elements in this collection that are contained in the specified collection (optional operation).
publicabstract int size () [Specified in Collection]
public Object toArray () [Specified in Collection]
  Returns an array containing all of the elements in this collection.
public T toArray ( T a) [Specified in Collection]
  Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.
public String toString ()
  Returns a string representation of this collection.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar