java.util
Class AbstractCollection

java.lang.Object
  |
  +--java.util.AbstractCollection
All Implemented Interfaces:
Collection
Direct Known Subclasses:
AbstractList, AbstractSet

public abstract synchronized class AbstractCollection
extends Object
implements Collection


Constructor Summary
protected AbstractCollection()
           
 
Method Summary
 boolean add(Object)
           
 boolean addAll(Collection)
           
 void clear()
           
 boolean contains(Object)
           
 boolean containsAll(Collection)
           
 boolean isEmpty()
           
abstract  Iterator iterator()
           
 boolean remove(Object)
           
 boolean removeAll(Collection)
           
 boolean retainAll(Collection)
           
abstract  int size()
           
 Object[] toArray()
           
 Object[] toArray(Object[])
           
 String toString()
          Returns the empty string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait
 
Methods inherited from interface java.util.Collection
equals, hashCode
 

Constructor Detail

AbstractCollection

protected AbstractCollection()
Method Detail

iterator

public abstract Iterator iterator()
Specified by:
iterator in interface Collection

size

public abstract int size()
Specified by:
size in interface Collection

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection

contains

public boolean contains(Object)
Specified by:
contains in interface Collection

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection

toArray

public Object[] toArray(Object[])
Specified by:
toArray in interface Collection

add

public boolean add(Object)
Specified by:
add in interface Collection

remove

public boolean remove(Object)
Specified by:
remove in interface Collection

containsAll

public boolean containsAll(Collection)
Specified by:
containsAll in interface Collection

addAll

public boolean addAll(Collection)
Specified by:
addAll in interface Collection

removeAll

public boolean removeAll(Collection)
Specified by:
removeAll in interface Collection

retainAll

public boolean retainAll(Collection)
Specified by:
retainAll in interface Collection

clear

public void clear()
Specified by:
clear in interface Collection

toString

public String toString()
Description copied from class: Object
Returns the empty string. It's here to satisfy javac.

Overrides:
toString in class Object