org.infinispan.jcache
Class JCacheEventFilteringIterable<K,V>
java.lang.Object
org.infinispan.jcache.JCacheEventFilteringIterable<K,V>
- Type Parameters:
K
- the type of keysV
- the type of values
- All Implemented Interfaces:
- Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
public class JCacheEventFilteringIterable<K,V>
- extends Object
- implements Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
An adapter to provide Iterable
s over Cache Entries, those of which
are filtered using a CacheEntryEventFilter
.
- Author:
- Galder ZamarreƱo
- See Also:
based on the JSR-107 reference implementation (RI) of
{@link Iterable>}
Method Summary |
Iterator<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> |
iterator()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JCacheEventFilteringIterable
public JCacheEventFilteringIterable(Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> iterable,
javax.cache.event.CacheEntryEventFilter<? super K,? super V> filter)
- Constructs an
JCacheEventFilteringIterable
.
- Parameters:
iterable
- the underlying iterable to filterfilter
- the filter to apply to entries in the iterable
iterator
public Iterator<javax.cache.event.CacheEntryEvent<? extends K,? extends V>> iterator()
-
- Specified by:
iterator
in interface Iterable<javax.cache.event.CacheEntryEvent<? extends K,? extends V>>
Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.