Package org.infinispan.commons.util
Class CloseableIteratorCollectionAdapter<E>
java.lang.Object
org.infinispan.commons.util.CloseableIteratorCollectionAdapter<E>
- All Implemented Interfaces:
Iterable<E>
,Collection<E>
,CloseableIteratorCollection<E>
- Direct Known Subclasses:
CloseableIteratorSetAdapter
public class CloseableIteratorCollectionAdapter<E>
extends Object
implements CloseableIteratorCollection<E>
Adapts
Collection
to CloseableIteratorCollection
- Author:
- Radim Vansa <rvansa@redhat.com>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> c) void
clear()
boolean
boolean
containsAll
(Collection<?> c) boolean
isEmpty()
iterator()
boolean
boolean
removeAll
(Collection<?> c) boolean
retainAll
(Collection<?> c) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] a) Methods inherited from interface org.infinispan.commons.util.CloseableIteratorCollection
parallelStream, stream
-
Field Details
-
delegate
-
-
Constructor Details
-
CloseableIteratorCollectionAdapter
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
Description copied from interface:CloseableIteratorCollection
This iterator should be explicitly closed when iteration upon it is completed. Failure to do so could cause resources to not be freed properly
- Specified by:
iterator
in interfaceCloseableIteratorCollection<E>
-
spliterator
Description copied from interface:CloseableIteratorCollection
This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
spliterator
in interfaceCloseableIteratorCollection<E>
-
toArray
-
toArray
public <T> T[] toArray(T[] a) -
add
-
remove
-
containsAll
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear()
-