Class TObjectHashIterator<E>

  • All Implemented Interfaces:
    TIterator, java.util.Iterator<E>

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

    • Constructor Detail

      • TObjectHashIterator

        public TObjectHashIterator​(TObjectHash<E> hash)
    • Method Detail

      • 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