Home » openjdk-7 » java » util » [javadoc | source]
java.util
class: Hashtable.Enumerator [javadoc | source]
java.lang.Object
   java.util.Hashtable$Enumerator

All Implemented Interfaces:
    Iterator, Enumeration

A hashtable enumerator class. This class implements both the Enumeration and Iterator interfaces, but individual instances can be created with the Iterator methods disabled. This is necessary to avoid unintentionally increasing the capabilities granted a user by passing an Enumeration.
Field Summary
 Entry[] table     
 int index     
 Entry<K, V> entry     
 Entry<K, V> lastReturned     
 int type     
 boolean iterator    Indicates whether this Enumerator is serving as an Iterator or an Enumeration. (true -> Iterator). 
protected  int expectedModCount    The modCount value that the iterator believes that the backing Hashtable should have. If this expectation is violated, the iterator has detected concurrent modification. 
Constructor:
 Enumerator(int type,
    boolean iterator) 
Method from java.util.Hashtable$Enumerator Summary:
hasMoreElements,   hasNext,   next,   nextElement,   remove
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.util.Hashtable$Enumerator Detail:
 public boolean hasMoreElements() 
 public boolean hasNext() 
 public T next() 
 public T nextElement() 
 public  void remove()