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 boolean
add(E e)
boolean
addAll(Collection<? extends E> c)
void
clear()
boolean
contains(Object o)
boolean
containsAll(Collection<?> c)
protected abstract Collection<E>
delegate()
void
forEach(Consumer<? super E> action)
boolean
isEmpty()
Iterator<E>
iterator()
Stream<E>
parallelStream()
boolean
remove(Object o)
boolean
removeAll(Collection<?> c)
boolean
removeIf(Predicate<? super E> filter)
boolean
retainAll(Collection<?> c)
int
size()
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()
-
-