Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class java.util.Hashtable.Enumerator

java.lang.Object
  |
  +--java.util.Hashtable.Enumerator

private class Hashtable.Enumerator
extends java.lang.Object
implements java.util.Enumeration, java.util.Iterator
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
Hashtable.Entry entry
           
int expectedModCount
          The modCount value that the iterator believes that the backing List should have.
int index
           
boolean iterator
          Indicates whether this Enumerator is serving as an Iterator or an Enumeration. (true -> Iterator).
Hashtable.Entry lastReturned
           
Hashtable.Entry[] table
           
int type
           
 
Constructor Summary
Hashtable.Enumerator(Hashtable this$0, int type, boolean iterator)
           
 
Method Summary
boolean hasMoreElements()
           
boolean hasNext()
           
java.lang.Object nextElement()
           
java.lang.Object next()
           
void remove()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notifyAll, notify, registerNatives, toString, wait, wait, wait
 

Field Detail

table

Hashtable.Entry[] table

index

int index

entry

Hashtable.Entry entry

lastReturned

Hashtable.Entry lastReturned

type

int type

iterator

boolean iterator
Indicates whether this Enumerator is serving as an Iterator or an Enumeration. (true -> Iterator).

expectedModCount

private int expectedModCount
The modCount value that the iterator believes that the backing List should have. If this expectation is violated, the iterator has detected concurrent modification.
Constructor Detail

Hashtable.Enumerator

Hashtable.Enumerator(Hashtable this$0,
                     int type,
                     boolean iterator)
Method Detail

hasMoreElements

public boolean hasMoreElements()
Description copied from interface:
 
Specified by:
hasMoreElements() in interface java.util.Enumeration


nextElement

public java.lang.Object nextElement()
Description copied from interface:
 
Specified by:
nextElement() in interface java.util.Enumeration


hasNext

public boolean hasNext()
Description copied from interface:
 
Specified by:
hasNext() in interface java.util.Iterator


next

public java.lang.Object next()
Description copied from interface:
 
Specified by:
next() in interface java.util.Iterator


remove

public void remove()
Description copied from interface:
 
Specified by:
remove() in interface java.util.Iterator


Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD