API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.util. AbstractSet View Source
Author(s)
Josh Bloch
Neal Gafter
Since
1.2
Version
1.29, 04/21/06
Serial
Hierarchy
 Object
      AbstractCollection
          AbstractSet
Implements
 Set
Subclasses
Description
publicabstract abstract class AbstractSet
  This class provides a skeletal implementation of the Set interface to minimize the effort required to implement this interface.
Constructors
protected AbstractSet ()
  Sole constructor.
Methods
Hide/Show inherited methods
public boolean add ( E e) [Inherited From AbstractCollection]
  Ensures that this collection contains the specified element (optional operation).
public boolean addAll (Collection<Object> c) [Inherited From AbstractCollection]
  Adds all of the elements in the specified collection to this collection (optional operation).
public void clear () [Inherited From AbstractCollection]
  Removes all of the elements from this collection (optional operation).
public boolean contains (Object o) [Inherited From AbstractCollection]
  Returns true if this collection contains the specified element.
public boolean containsAll (Collection<Object> c) [Inherited From AbstractCollection]
  Returns true if this collection contains all of the elements in the specified collection.
public boolean equals (Object o) [Specified in Set]
  Compares the specified object with this set for equality.
public int hashCode () [Specified in Set]
  Returns the hash code value for this set.
public boolean isEmpty () [Inherited From AbstractCollection]
  Returns true if this collection contains no elements.
publicabstract Iterator< E> iterator () [Inherited From AbstractCollection]
  Returns an iterator over the elements contained in this collection.
public boolean remove (Object o) [Inherited From AbstractCollection]
  Removes a single instance of the specified element from this collection, if it is present (optional operation).
public boolean removeAll (Collection<Object> c) [Overrides AbstractCollection] [Specified in Set]
  Removes from this set all of its elements that are contained in the specified collection (optional operation).
public boolean retainAll (Collection<Object> c) [Inherited From AbstractCollection]
  Retains only the elements in this collection that are contained in the specified collection (optional operation).
publicabstract int size () [Inherited From AbstractCollection]
public Object toArray () [Inherited From AbstractCollection]
  Returns an array containing all of the elements in this collection.
public T toArray ( T a) [Inherited From AbstractCollection]
  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 () [Inherited From AbstractCollection]
  Returns a string representation of this collection.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar