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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) protected abstract Collection<E>
delegate()
void
boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
boolean
retainAll
(Collection<?> c) int
size()
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
-