Build 1.0_r1(from source)

java.util
Class IdentityHashMap.IdentityHashMapIterator<E,KT,VT>

java.lang.Object
  extended by java.util.IdentityHashMap.IdentityHashMapIterator<E,KT,VT>
All Implemented Interfaces:
Iterator<E>
Enclosing class:
IdentityHashMap<K,V>

static class IdentityHashMap.IdentityHashMapIterator<E,KT,VT>
extends Object
implements Iterator<E>


Field Summary
(package private)  IdentityHashMap<KT,VT> associatedMap
           
(package private)  boolean canRemove
           
(package private)  int expectedModCount
           
(package private)  MapEntry.Type<E,KT,VT> type
           
 
Constructor Summary
IdentityHashMap.IdentityHashMapIterator(MapEntry.Type<E,KT,VT> value, IdentityHashMap<KT,VT> hm)
           
 
Method Summary
(package private)  void checkConcurrentMod()
           
 boolean hasNext()
          Returns if there are more elements to iterate.
 E next()
          Returns the next object in the iteration.
 void remove()
          Removes the last object returned by next from the collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

associatedMap

final IdentityHashMap<KT,VT> associatedMap

expectedModCount

int expectedModCount

type

final MapEntry.Type<E,KT,VT> type

canRemove

boolean canRemove
Constructor Detail

IdentityHashMap.IdentityHashMapIterator

IdentityHashMap.IdentityHashMapIterator(MapEntry.Type<E,KT,VT> value,
                                        IdentityHashMap<KT,VT> hm)
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: Iterator
Returns if there are more elements to iterate.

Specified by:
hasNext in interface Iterator<E>
Returns:
true if there are more elements, false otherwise
See Also:
Iterator.next()

checkConcurrentMod

void checkConcurrentMod()
                  throws ConcurrentModificationException
Throws:
ConcurrentModificationException

next

public E next()
Description copied from interface: Iterator
Returns the next object in the iteration.

Specified by:
next in interface Iterator<E>
Returns:
the next object
See Also:
Iterator.hasNext()

remove

public void remove()
Description copied from interface: Iterator
Removes the last object returned by next from the collection.

Specified by:
remove in interface Iterator<E>

Build 1.0_r1(from source)

Please submit a feedback, bug or feature