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,ReadOnlySegmentAwareCollection
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) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, toArray
-
Constructor Details
-
AbstractDelegatingCollection
public AbstractDelegatingCollection()
-
-
Method Details
-
delegate
-
size
public int size()- Specified by:
sizein interfaceCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>
-
iterator
-
forEach
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>
-
add
- Specified by:
addin interfaceCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
removeIf
- Specified by:
removeIfin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-
spliterator
- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>
-
stream
- Specified by:
streamin interfaceCollection<E>
-
parallelStream
- Specified by:
parallelStreamin interfaceCollection<E>
-