Class UnboundedLocalCache.KeyIterator<K>
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.UnboundedLocalCache.KeyIterator<K>
-
- All Implemented Interfaces:
java.util.Iterator<K>
- Enclosing class:
- UnboundedLocalCache<K,V>
static final class UnboundedLocalCache.KeyIterator<K> extends java.lang.Object implements java.util.Iterator<K>
An adapter to safely externalize the key iterator.
-
-
Constructor Summary
Constructors Constructor Description KeyIterator(UnboundedLocalCache<K,?> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
K
next()
void
remove()
-
-
-
Field Detail
-
cache
final UnboundedLocalCache<K,?> cache
-
iterator
final java.util.Iterator<K> iterator
-
current
K current
-
-
Constructor Detail
-
KeyIterator
KeyIterator(UnboundedLocalCache<K,?> cache)
-
-