org.apache.commons.collections.map

Class AbstractHashedMap.HashIterator

Enclosing Class:
AbstractHashedMap
Implemented Interfaces:
Iterator
Known Direct Subclasses:
AbstractHashedMap.EntrySetIterator, AbstractHashedMap.HashMapIterator, AbstractHashedMap.ValuesIterator

protected static abstract class AbstractHashedMap.HashIterator
extends java.lang.Object
implements Iterator

Base Iterator

Field Summary

protected int
expectedModCount
The modification count expected
protected int
hashIndex
The current index into the array of buckets
protected AbstractHashedMap.HashEntry
last
The last returned entry
protected AbstractHashedMap.HashEntry
next
The next entry
protected AbstractHashedMap
parent
The parent map

Constructor Summary

HashIterator(AbstractHashedMap parent)

Method Summary

protected AbstractHashedMap.HashEntry
currentEntry()
boolean
hasNext()
protected AbstractHashedMap.HashEntry
nextEntry()
void
remove()
String
toString()

Field Details

expectedModCount

protected int expectedModCount
The modification count expected

hashIndex

protected int hashIndex
The current index into the array of buckets

last

protected AbstractHashedMap.HashEntry last
The last returned entry

AbstractHashedMap.HashEntry next
The next entry

parent

protected final AbstractHashedMap parent
The parent map

Constructor Details

HashIterator

protected HashIterator(AbstractHashedMap parent)

Method Details

currentEntry

protected AbstractHashedMap.HashEntry currentEntry()

hasNext

public boolean hasNext()

nextEntry

protected AbstractHashedMap.HashEntry nextEntry()

remove

public void remove()

toString

public String toString()

Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.