Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javatools.util
Class IteratorToEnumeration  view IteratorToEnumeration download IteratorToEnumeration.java

java.lang.Object
  extended byjavatools.util.IteratorToEnumeration
All Implemented Interfaces:
java.util.Enumeration

public class IteratorToEnumeration
extends java.lang.Object
implements java.util.Enumeration

Uses an Iterator object as an Enumeration object.

Version:
0.7

Field Summary
(package private)  java.util.Iterator it
          The iterator to use.
 
Constructor Summary
IteratorToEnumeration(java.util.Iterator it)
          Creates a new object.
 
Method Summary
 boolean hasMoreElements()
          Checks if there are more elements in this iterator.
 java.lang.Object nextElement()
          Returns the next element of the iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

it

java.util.Iterator it
The iterator to use.

Constructor Detail

IteratorToEnumeration

public IteratorToEnumeration(java.util.Iterator it)
Creates a new object.

Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks if there are more elements in this iterator.

Specified by:
hasMoreElements in interface java.util.Enumeration

nextElement

public java.lang.Object nextElement()
Returns the next element of the iterator.

Specified by:
nextElement in interface java.util.Enumeration