Top Description Fields Constructors Methods
org.apache.commons.jexl2.internal

public Class EnumerationIterator<T>

extends Object
implements Iterator<T>
Class Inheritance
All Implemented Interfaces
java.util.Iterator
Type Parameters
<T>
the type of object this iterator returns
Imports
java.util.Iterator, .Enumeration

An Iterator wrapper for an Enumeration.
Since
1.0

Field Summary

Modifier and TypeField and Description
private final Enumeration<T>
enumeration

The enumeration to iterate over.

Constructor Summary

AccessConstructor and Description
public
EnumerationIterator(Enumeration<T>
The Enumeration to wrap.
enumer
)

Creates a new iteratorwrapper instance for the specified Enumeration.

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

Whether there is another element.
hasNext
()

Implements java.util.Iterator.hasNext.

Check to see if there is another element in the array.
public T

Returns:

The next object in the array.
next
()

Implements java.util.Iterator.next.

Move to next element in the array.
public void
remove()

Overrides default java.util.Iterator.remove.

Unimplemented.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

enumerationback to summary
private final Enumeration<T> enumeration

The enumeration to iterate over.

Constructor Detail

EnumerationIteratorback to summary
public EnumerationIterator(Enumeration<T> enumer)

Creates a new iteratorwrapper instance for the specified Enumeration.

Parameters
enumer:Enumeration<T>

The Enumeration to wrap.

Method Detail

hasNextback to summary
public boolean hasNext()

Implements java.util.Iterator.hasNext.

Check to see if there is another element in the array.

Returns:boolean

Whether there is another element.

nextback to summary
public T next()

Implements java.util.Iterator.next.

Move to next element in the array.

Returns:T

The next object in the array.

removeback to summary
public void remove()

Overrides default java.util.Iterator.remove.

Unimplemented. No analogy in Enumeration