Module java.base
Package java.util

# Interface Collection

=
public abstract interface Collection<E>
extends java.lang.Iterable<E>

## Methods

- =
  public abstract boolean add(E arg0)
- =
  public abstract boolean addAll(java.util.Collection<? extends E> arg0)
- =
  public abstract void clear()
- =
  public abstract boolean contains(java.lang.Object arg0)
- =
  public abstract boolean containsAll(java.util.Collection<?> arg0)
- =
  public abstract boolean equals(java.lang.Object arg0)
- =
  public abstract int hashCode()
- =
  public abstract boolean isEmpty()
- =
  public abstract java.util.Iterator<E> iterator()
- =
  public default java.util.stream.Stream<E> parallelStream()
- =
  public abstract boolean remove(java.lang.Object arg0)
- =
  public abstract boolean removeAll(java.util.Collection<?> arg0)
- =
  public default boolean removeIf(java.util.function.Predicate<? super E> arg0)
- =
  public abstract boolean retainAll(java.util.Collection<?> arg0)
- =
  public abstract int size()
- =
  public default java.util.Spliterator<E> spliterator()
- =
  public default java.util.stream.Stream<E> stream()
- =
  public abstract java.lang.Object[] toArray()
- =
  public abstract <T> T[] toArray(T[] arg0)
- =
  public default <T> T[] toArray(java.util.function.IntFunction<T[]> arg0)

## Summary

No differences.