Class AbstractDelegatingCollection<E>

java.lang.Object
org.infinispan.commons.util.AbstractDelegatingCollection<E>
Type Parameters:
E - The type of collection
All Implemented Interfaces:
Iterable<E>, Collection<E>
Direct Known Subclasses:
AbstractDelegatingSet

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

    • AbstractDelegatingCollection

      public AbstractDelegatingCollection()
  • Method Details

    • delegate

      protected abstract Collection<E> delegate()
    • size

      public int size()
    • isEmpty

      public boolean isEmpty()
    • contains

      public boolean contains(Object o)
    • iterator

      public Iterator<E> iterator()
    • 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()
    • spliterator

      public Spliterator<E> spliterator()
    • stream

      public Stream<E> stream()
    • parallelStream

      public Stream<E> parallelStream()