org.millscript.commons.util.map
Class AbstractEReferenceHashMap.HashMapKeysIterator<K>

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.HashMapKeysIterator<K>
All Implemented Interfaces:
ListIterator<K>, MapIterator<java.lang.Integer,K>
Enclosing class:
AbstractEReferenceHashMap<K,V>

public static class AbstractEReferenceHashMap.HashMapKeysIterator<K>
extends AbstractListIterator<V>

This class implements a map iterator which iterates over an array of hash map buckets, returning each maplet key, sharing the backing store with it's enclosing mutable map.


Field Summary
 
Fields inherited from class org.millscript.commons.util.iterator.AbstractListIterator
position
 
Constructor Summary
AbstractEReferenceHashMap.HashMapKeysIterator(AbstractEReferenceHashMap<?,?> map, int first, int last)
          Constructs a new hash map iterator to iterate over the specified mutable hash map returning the maplet keys.
 
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.HashMapKeysIterator

public AbstractEReferenceHashMap.HashMapKeysIterator(AbstractEReferenceHashMap<?,?> map,
                                                     int first,
                                                     int last)
Constructs a new hash map iterator to iterate over the specified mutable hash map returning the maplet keys.

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.