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
Delegating collection that delegates all calls to the collection returned from
delegate()-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) protected abstract Collection<E>delegate()voidbooleanisEmpty()iterator()booleanbooleanremoveAll(Collection<?> c) booleanbooleanretainAll(Collection<?> c) intsize()stream()Object[]toArray()<T> T[]toArray(T[] a)
-
Constructor Details
-
AbstractDelegatingCollection
public AbstractDelegatingCollection()
-
-
Method Details
-
delegate
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
forEach
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
-
addAll
-
removeAll
-
removeIf
-
retainAll
-
clear
public void clear() -
spliterator
-
stream
-
parallelStream
-