Class EnumerationIterator<T>
- java.lang.Object
-
- de.alpharogroup.collections.iterators.EnumerationIterator<T>
-
- Type Parameters:
T- Generic type of thisEnumerationIterator
- All Implemented Interfaces:
java.util.Iterator<T>
public class EnumerationIterator<T> extends java.lang.Object implements java.util.Iterator<T>The adapter class EnumerationIterator.
-
-
Constructor Summary
Constructors Constructor Description EnumerationIterator(java.util.Enumeration<T> enumeration)Instantiates a new enumeration iterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Tnext()voidremove()
-
-
-
Constructor Detail
-
EnumerationIterator
public EnumerationIterator(java.util.Enumeration<T> enumeration)
Instantiates a new enumeration iterator.- Parameters:
enumeration- the enumeration to iterate.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<T>- Returns:
- true, if checks for next
- See Also:
Iterator.hasNext()
-
next
public T next()
- Specified by:
nextin interfacejava.util.Iterator<T>- Returns:
- the object
- See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<T>- See Also:
Iterator.remove()
-
-