protected class SimpleCacheImpl.FilteredEntryIterable extends Object implements EntryIterable<K,V>
Constructor and Description |
---|
FilteredEntryIterable(KeyValueFilter<? super K,? super V> filter) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<C> CloseableIterable<CacheEntry<K,C>> |
converter(Converter<? super K,? super V,C> converter)
This returns a
CloseableIterable that will change the type of the returned
value for the entry using the already provided filter in addition to the converter. |
CloseableIterator<CacheEntry<K,V>> |
iterator() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public FilteredEntryIterable(KeyValueFilter<? super K,? super V> filter)
public void close()
close
in interface AutoCloseable
close
in interface CloseableIterable<CacheEntry<K,V>>
public CloseableIterator<CacheEntry<K,V>> iterator()
iterator
in interface Iterable<CacheEntry<K,V>>
iterator
in interface CloseableIterable<CacheEntry<K,V>>
public <C> CloseableIterable<CacheEntry<K,C>> converter(Converter<? super K,? super V,C> converter)
EntryIterable
CloseableIterable
that will change the type of the returned
value for the entry using the already provided filter in addition to the converter.converter
in interface EntryIterable<K,V>
C
- The type of the converted valueconverter
- The converter to apply to the iterator that is produced. Callbacks to to this converter will
never provide a key or value that is null.Copyright © 2021 JBoss, a division of Red Hat. All rights reserved.