java.util
Class AbstractCollection
java.lang.Object
java.util.AbstractCollection
- All Implemented Interfaces:
- Collection
- Direct Known Subclasses:
- AbstractList, AbstractSet
- public abstract class AbstractCollection
- extends java.lang.Object
- implements Collection
Title:
Description:
Copyright: Copyright (c) 2001
Company:
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractCollection
protected AbstractCollection()
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(java.lang.Object o)
- Specified by:
contains
in interface Collection
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interface Collection
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
throws java.lang.NullPointerException,
java.lang.ArrayStoreException
- Specified by:
toArray
in interface Collection
- Throws:
java.lang.NullPointerException
java.lang.ArrayStoreException
add
public boolean add(java.lang.Object o)
throws UnsupportedOperationException,
java.lang.NullPointerException,
java.lang.ClassCastException,
java.lang.IllegalArgumentException
- Specified by:
add
in interface Collection
- Throws:
UnsupportedOperationException
java.lang.NullPointerException
java.lang.ClassCastException
java.lang.IllegalArgumentException
remove
public boolean remove(java.lang.Object o)
throws UnsupportedOperationException
- Specified by:
remove
in interface Collection
- Throws:
UnsupportedOperationException
containsAll
public boolean containsAll(Collection c)
- Specified by:
containsAll
in interface Collection
addAll
public boolean addAll(Collection c)
throws UnsupportedOperationException
- Specified by:
addAll
in interface Collection
- Throws:
UnsupportedOperationException
removeAll
public boolean removeAll(Collection c)
throws UnsupportedOperationException
- Specified by:
removeAll
in interface Collection
- Throws:
UnsupportedOperationException
retainAll
public boolean retainAll(Collection c)
throws UnsupportedOperationException
- Specified by:
retainAll
in interface Collection
- Throws:
UnsupportedOperationException
clear
public void clear()
throws UnsupportedOperationException
- Specified by:
clear
in interface Collection
- Throws:
UnsupportedOperationException
toString
public java.lang.String toString()