org.millscript.commons.util.map
Class AbstractEReferenceHashMap.HashMapMapletIterator<K,V>

java.lang.Object
  extended by org.millscript.commons.util.iterator.AbstractMapIterator<java.lang.Integer,V>
      extended by org.millscript.commons.util.iterator.AbstractListIterator<V>
          extended by org.millscript.commons.util.map.AbstractEReferenceHashMap.HashMapMapletIterator<K,V>
All Implemented Interfaces:
ListIterator<Maplet<K,V>>, MapIterator<java.lang.Integer,Maplet<K,V>>
Enclosing class:
AbstractEReferenceHashMap<K,V>

public static class AbstractEReferenceHashMap.HashMapMapletIterator<K,V>
extends AbstractListIterator<V>

This class implements a map iterator which iterates over an array of hash map buckets, returning each maplet as the value.


Field Summary
 
Fields inherited from class org.millscript.commons.util.iterator.AbstractListIterator
position
 
Constructor Summary
AbstractEReferenceHashMap.HashMapMapletIterator(AbstractEReferenceHashMap<?,?> map, int first, int last)
          Constructs a new hash map iterator to iterate over the specified array of hash map buckets returning the maplet as the value.
 
Method Summary
 
Methods inherited from class org.millscript.commons.util.iterator.AbstractListIterator
currentMaplet, getKey, getMaplet, nextMaplet
 
Methods inherited from class org.millscript.commons.util.iterator.AbstractMapIterator
currentKey, currentValue, nextKey, nextValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.millscript.commons.util.MapIterator
currentKey, currentValue, nextKey, nextValue
 

Constructor Detail

AbstractEReferenceHashMap.HashMapMapletIterator

public AbstractEReferenceHashMap.HashMapMapletIterator(AbstractEReferenceHashMap<?,?> map,
                                                       int first,
                                                       int last)
Constructs a new hash map iterator to iterate over the specified array of hash map buckets returning the maplet as the value.

Parameters:
map - the mutable hash map to iterate over
first - the index(one based, inclusive) of the first name
last - the index(one based, inclusive) of the last name


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.