Class LocalCache.HashIterator<T>

java.lang.Object
com.google.common.cache.LocalCache.HashIterator<T>
All Implemented Interfaces:
Iterator<T>
Direct Known Subclasses:
LocalCache.EntryIterator, LocalCache.KeyIterator, LocalCache.ValueIterator
Enclosing class:
LocalCache<K,V>

abstract class LocalCache.HashIterator<T> extends Object implements Iterator<T>
  • Field Details

  • Constructor Details

    • HashIterator

      HashIterator()
  • Method Details

    • next

      public abstract T next()
      Specified by:
      next in interface Iterator<T>
    • advance

      final void advance()
    • nextInChain

      boolean nextInChain()
      Finds the next entry in the current chain. Returns true if an entry was found.
    • nextInTable

      boolean nextInTable()
      Finds the next entry in the current table. Returns true if an entry was found.
    • advanceTo

      boolean advanceTo(ReferenceEntry<K,V> entry)
      Advances to the given entry. Returns true if the entry was valid, false if it should be skipped.
    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • nextEntry

    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>