Package gnu.trove.iterator.hash
Class TObjectHashIterator<E>
java.lang.Object
gnu.trove.impl.hash.THashIterator<E>
gnu.trove.iterator.hash.TObjectHashIterator<E>
Iterator for hashtables that use open addressing to resolve collisions.
-
Field Summary
FieldsFields inherited from class gnu.trove.impl.hash.THashIterator
_expectedSize, _hash, _index -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EobjectAtIndex(int index) Returns the object at the specified index.Methods inherited from class gnu.trove.impl.hash.THashIterator
hasNext, moveToNextIndex, next, nextIndex, removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
_objectHash
-
-
Constructor Details
-
TObjectHashIterator
-
-
Method Details
-
objectAtIndex
Description copied from class:THashIteratorReturns the object at the specified index. Subclasses should implement this to return the appropriate object for the given index.- Specified by:
objectAtIndexin classTHashIterator<E>- Parameters:
index- the index of the value to return.- Returns:
- an
Objectvalue
-