public class RemovableEntryIterator<K,V,C> extends Object implements CloseableIterator<CacheEntry<K,C>>
Modifier and Type | Field and Description |
---|---|
protected Cache<K,V> |
cache |
protected CacheEntry<K,C> |
currentValue |
protected CacheEntry<K,C> |
previousValue |
protected CloseableIterator<CacheEntry<K,V>> |
realIterator |
Constructor and Description |
---|
RemovableEntryIterator(CloseableIterator<CacheEntry<K,V>> realIterator,
Cache<K,V> cache,
boolean initIterator) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected CacheEntry<K,C> |
getNextFromIterator() |
boolean |
hasNext() |
CacheEntry<K,C> |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final CloseableIterator<CacheEntry<K,V>> realIterator
protected CacheEntry<K,C> previousValue
protected CacheEntry<K,C> currentValue
public RemovableEntryIterator(CloseableIterator<CacheEntry<K,V>> realIterator, Cache<K,V> cache, boolean initIterator)
protected CacheEntry<K,C> getNextFromIterator()
public boolean hasNext()
hasNext
in interface Iterator<CacheEntry<K,C>>
public CacheEntry<K,C> next()
next
in interface Iterator<CacheEntry<K,C>>
public void remove()
remove
in interface Iterator<CacheEntry<K,C>>
public void close()
close
in interface AutoCloseable
close
in interface CloseableIterator<CacheEntry<K,C>>
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.