Collection Interface
Collection is a root Interface in the collection data structure Hierarchy.
Collection Interface has super Interface Iterable<E>.
Following are the sub interfaces of Collection
boolean add(E e);
boolean addAll(Collection<? extends E> c);
void clear();
boolean contains(Object o);
boolean containsAll(Collection<?> c);
boolean equals(Object o);
int hashCode();
boolean isEmpty();
Iterator<E> iterator();
boolean remove(Object o);
boolean removeAll(Collection<?> c);
boolean retainAll(Collection<?> c);
int size();
Object[] toArray();
<T> T[] toArray(T[] a);
Collection Interface has super Interface Iterable<E>.
Following are the sub interfaces of Collection
- BeanContext
- BeanContextServices
- BlockingDeque<E>
- BlockingQueue<E>
- Deque<E>
- List<E>
- NavigableSet<E>
- Queue<E>
- Set<E>
- SortedSet<E>
- TransferQueue<E>
boolean add(E e);
boolean addAll(Collection<? extends E> c);
void clear();
boolean contains(Object o);
boolean containsAll(Collection<?> c);
boolean equals(Object o);
int hashCode();
boolean isEmpty();
Iterator<E> iterator();
boolean remove(Object o);
boolean removeAll(Collection<?> c);
boolean retainAll(Collection<?> c);
int size();
Object[] toArray();
<T> T[] toArray(T[] a);