Class TObjectHashIterator<E>

java.lang.Object
gnu.trove.impl.hash.THashIterator<E>
gnu.trove.iterator.hash.TObjectHashIterator<E>
All Implemented Interfaces:
TIterator, Iterator<E>

public class TObjectHashIterator<E> extends THashIterator<E>
Iterator for hashtables that use open addressing to resolve collisions.
  • Field Details

    • _objectHash

      protected final TObjectHash _objectHash
  • Constructor Details

    • TObjectHashIterator

      public TObjectHashIterator(TObjectHash<E> hash)
  • Method Details

    • objectAtIndex

      protected E objectAtIndex(int index)
      Description copied from class: THashIterator
      Returns the object at the specified index. Subclasses should implement this to return the appropriate object for the given index.
      Specified by:
      objectAtIndex in class THashIterator<E>
      Parameters:
      index - the index of the value to return.
      Returns:
      an Object value