Package net.solarnetwork.util
Class IteratorEnumeration<E>
java.lang.Object
net.solarnetwork.util.IteratorEnumeration<E>
- All Implemented Interfaces:
Enumeration<E>
Utility that adapts an
Iterator into an Enumeration.
This is useful when dealing with older APIs that still rely on
Enumeration, such as the Servlet API.
- Since:
- 1.41
- Version:
- 1.0
- Author:
- matt
-
Constructor Details
-
IteratorEnumeration
Constructor.- Parameters:
iterator- the iterator to delegate to
-
-
Method Details
-
nextElement
- Specified by:
nextElementin interfaceEnumeration<E>
-
hasMoreElements
public boolean hasMoreElements()- Specified by:
hasMoreElementsin interfaceEnumeration<E>
-