java.util

Class AbstractCollection<E>

public abstract class AbstractCollection<E> extends Object implements Collection<E>

Constructor Summary
protected AbstractCollection()
Method Summary
booleanadd(E o)
<T extends E> booleanaddAll(Collection<T> c)
voidclear()
booleancontains(Object o)
<T> booleancontainsAll(Collection<T> c)
booleanisEmpty()
abstract Iterator<E>iterator()
booleanremove(Object o)
<T> booleanremoveAll(Collection<T> c)
<T> booleanretainAll(Collection<T> c)
abstract intsize()
Object[]toArray()
<T> T[]toArray(T[] a)
StringtoString()

Constructor Detail

AbstractCollection

protected AbstractCollection()

Method Detail

add

public boolean add(E o)

addAll

public <T extends E> boolean addAll(Collection<T> c)

clear

public void clear()

contains

public boolean contains(Object o)

containsAll

public <T> boolean containsAll(Collection<T> c)

isEmpty

public boolean isEmpty()

iterator

public abstract Iterator<E> iterator()

remove

public boolean remove(Object o)

removeAll

public <T> boolean removeAll(Collection<T> c)

retainAll

public <T> boolean retainAll(Collection<T> c)

size

public abstract int size()

toArray

public Object[] toArray()

toArray

public <T> T[] toArray(T[] a)

toString

public String toString()