K
- key type of the cacheV
- value type of the cachepublic class ValueCacheCollection<K,V> extends AbstractCloseableIteratorCollection<V,K,V> implements CacheCollection<V>
cache
Constructor and Description |
---|
ValueCacheCollection(Cache<K,V> cache,
CacheSet<CacheEntry<K,V>> cacheSet) |
Modifier and Type | Method and Description |
---|---|
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
CloseableIterator<V> |
iterator() |
CacheStream<V> |
parallelStream() |
boolean |
remove(Object o) |
CloseableSpliterator<V> |
spliterator() |
CacheStream<V> |
stream() |
clear, isEmpty, removeAll, retainAll, size, toArray, toArray
add, addAll, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
localPublisher, localPublisher
public CloseableIterator<V> iterator()
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
iterator
in interface Iterable<V>
iterator
in interface Collection<V>
iterator
in interface CloseableIteratorCollection<V>
iterator
in class AbstractCloseableIteratorCollection<V,K,V>
public CloseableSpliterator<V> spliterator()
CloseableIteratorCollection
This spliterator should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
spliterator
in interface Iterable<V>
spliterator
in interface Collection<V>
spliterator
in interface CloseableIteratorCollection<V>
spliterator
in class AbstractCloseableIteratorCollection<V,K,V>
public boolean contains(Object o)
contains
in interface Collection<V>
contains
in class AbstractCloseableIteratorCollection<V,K,V>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<V>
containsAll
in class AbstractCollection<V>
public boolean remove(Object o)
remove
in interface Collection<V>
remove
in class AbstractCloseableIteratorCollection<V,K,V>
public CacheStream<V> stream()
CloseableIteratorCollection
This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
stream
in interface Collection<V>
stream
in interface CacheCollection<V>
stream
in interface CloseableIteratorCollection<V>
public CacheStream<V> parallelStream()
CloseableIteratorCollection
This stream should be explicitly closed after it has been used. Failure to do so could cause resources to not be freed properly
parallelStream
in interface Collection<V>
parallelStream
in interface CacheCollection<V>
parallelStream
in interface CloseableIteratorCollection<V>
Copyright © 2021 JBoss by Red Hat. All rights reserved.