Interface CloseableIteratorSet<E>
- All Superinterfaces:
CloseableIteratorCollection<E>, Collection<E>, Iterable<E>, Set<E>
- All Known Subinterfaces:
CacheSet<E>
- All Known Implementing Classes:
AbstractCacheBackedSet, CacheBackedEntrySet, CacheBackedKeySet, CacheSetMapper, CloseableIteratorSetAdapter, InternalCacheSet, SimpleCacheImpl.CacheEntrySet, SimpleCacheImpl.EntrySet, SimpleCacheImpl.EntrySetBase, SimpleCacheImpl.KeySet, WriteableCacheSetMapper
A set that defines an iterator method that returns a
CloseableIterator
instead of a non closeable one. This is needed so that iterators can be properly cleaned up. All other
methods will internally clean up any iterators created and don't have other side effects.- Since:
- 7.0
- Author:
- wburns
-
Method Summary
Methods inherited from interface CloseableIteratorCollection
iterator, parallelStream, streamMethods inherited from interface Collection
removeIf, toArray
-
Method Details
-
spliterator
CloseableSpliterator<E> spliterator()Description copied from interface:CloseableIteratorCollectionThis spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
- Specified by:
spliteratorin interfaceCloseableIteratorCollection<E>- Specified by:
spliteratorin interfaceCollection<E>- Specified by:
spliteratorin interfaceIterable<E>- Specified by:
spliteratorin interfaceSet<E>
-