Class CacheObjectIterator<K,V>

java.lang.Object
org.miaixz.bus.core.cache.provider.CacheObjectIterator<K,V>
Type Parameters:
K - 键类型
V - 值类型
All Implemented Interfaces:
Serializable, Iterator<CacheObject<K,V>>

public class CacheObjectIterator<K,V> extends Object implements Iterator<CacheObject<K,V>>, Serializable
AbstractCache 的CacheObj迭代器.
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<K>
      Returns:
      是否有下一个值
    • next

      public CacheObject<K,V> next()
      Specified by:
      next in interface Iterator<K>
      Returns:
      下一个值
    • remove

      public void remove()
      从缓存中移除没有过期的当前值,此方法不支持
      Specified by:
      remove in interface Iterator<K>