public abstract class AbstractCollection<E> extends Object implements Collection<E>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(E object) |
boolean |
addAll(Collection<? extends E> collection) |
void |
clear() |
boolean |
contains(Object object) |
boolean |
containsAll(Collection<?> collection) |
boolean |
isEmpty() |
abstract Iterator<E> |
iterator() |
boolean |
remove(Object object) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
abstract int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] contents) |
String |
toString() |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, removeIfpublic boolean add(E object)
add in interface Collection<E>public boolean addAll(Collection<? extends E> collection)
addAll in interface Collection<E>public void clear()
clear in interface Collection<E>public boolean contains(Object object)
contains in interface Collection<E>public boolean containsAll(Collection<?> collection)
containsAll in interface Collection<E>public boolean isEmpty()
isEmpty in interface Collection<E>public boolean remove(Object object)
remove in interface Collection<E>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<E>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<E>public abstract int size()
size in interface Collection<E>public Object[] toArray()
toArray in interface Collection<E>public <T> T[] toArray(T[] contents)
toArray in interface Collection<E>Copyright © 2026. All rights reserved.