Package gnu.trove.iterator.hash
Class TObjectHashIterator<E>
- java.lang.Object
-
- gnu.trove.impl.hash.THashIterator<E>
-
- gnu.trove.iterator.hash.TObjectHashIterator<E>
-
- All Implemented Interfaces:
TIterator,java.util.Iterator<E>
public class TObjectHashIterator<E> extends gnu.trove.impl.hash.THashIterator<E>Iterator for hashtables that use open addressing to resolve collisions.
-
-
Field Summary
Fields Modifier and Type Field Description protected gnu.trove.impl.hash.TObjectHash_objectHash
-
Constructor Summary
Constructors Constructor Description TObjectHashIterator(gnu.trove.impl.hash.TObjectHash<E> hash)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EobjectAtIndex(int index)Returns the object at the specified index.-
Methods inherited from class gnu.trove.impl.hash.THashIterator
hasNext, moveToNextIndex, next, nextIndex, remove
-
-
-
-
Constructor Detail
-
TObjectHashIterator
public TObjectHashIterator(gnu.trove.impl.hash.TObjectHash<E> hash)
-
-
Method Detail
-
objectAtIndex
protected E objectAtIndex(int index)
Description copied from class:gnu.trove.impl.hash.THashIteratorReturns the object at the specified index. Subclasses should implement this to return the appropriate object for the given index.- Specified by:
objectAtIndexin classgnu.trove.impl.hash.THashIterator<E>- Parameters:
index- the index of the value to return.- Returns:
- an
Objectvalue
-
-