Class AbstractDelegatingCollection<E>

  • Type Parameters:
    E - The type of collection
    All Implemented Interfaces:
    Iterable<E>, Collection<E>
    Direct Known Subclasses:

    public abstract class AbstractDelegatingCollection<E>
    extends Object
    implements Collection<E>
    Delegating collection that delegates all calls to the collection returned from delegate()
    • Constructor Detail

      • AbstractDelegatingCollection

        public AbstractDelegatingCollection()
    • Method Detail

      • delegate

        protected abstract Collection<E> delegate()
      • size

        public int size()
      • isEmpty

        public boolean isEmpty()
      • contains

        public boolean contains​(Object o)
      • forEach

        public void forEach​(Consumer<? super E> action)
      • toArray

        public Object[] toArray()
      • toArray

        public <T> T[] toArray​(T[] a)
      • add

        public boolean add​(E e)
      • remove

        public boolean remove​(Object o)
      • containsAll

        public boolean containsAll​(Collection<?> c)
      • addAll

        public boolean addAll​(Collection<? extends E> c)
      • removeAll

        public boolean removeAll​(Collection<?> c)
      • removeIf

        public boolean removeIf​(Predicate<? super E> filter)
      • retainAll

        public boolean retainAll​(Collection<?> c)
      • clear

        public void clear()
      • stream

        public Stream<E> stream()
      • parallelStream

        public Stream<E> parallelStream()