Class CacheEntries.Iter<K,V>

java.lang.Object
org.apache.sis.util.collection.CacheEntries.Iter<K,V>
All Implemented Interfaces:
Iterator<Map.Entry<K,V>>
Enclosing class:
CacheEntries<K,V>

private static final class CacheEntries.Iter<K,V> extends Object implements Iterator<Map.Entry<K,V>>
An iterator over the entries in the Cache.map. Handlers will be skipped and the values of weak references are returned instead of the Reference object.
  • Field Details

  • Constructor Details

  • Method Details

    • advance

      private void advance()
      Advances the iterator to the next entry to be returned.
    • hasNext

      public boolean hasNext()
      Returns true if there is more element to returns.
      Specified by:
      hasNext in interface Iterator<K>
    • next

      public Map.Entry<K,V> next()
      Returns the next element.
      Specified by:
      next in interface Iterator<K>