Package org.infinispan.commons.util
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 fromdelegate()
-
-
Constructor Summary
Constructors Constructor Description AbstractDelegatingCollection()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanadd(E e)booleanaddAll(Collection<? extends E> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)protected abstract Collection<E>delegate()voidforEach(Consumer<? super E> action)booleanisEmpty()Iterator<E>iterator()Stream<E>parallelStream()booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanremoveIf(Predicate<? super E> filter)booleanretainAll(Collection<?> c)intsize()Spliterator<E>spliterator()Stream<E>stream()Object[]toArray()<T> T[]toArray(T[] a)
-
-
-
Method Detail
-
delegate
protected abstract Collection<E> delegate()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
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)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
spliterator
public Spliterator<E> spliterator()
-
-