Class IteratorEnumeration<E>

java.lang.Object
net.solarnetwork.util.IteratorEnumeration<E>
All Implemented Interfaces:
Enumeration<E>

public class IteratorEnumeration<E> extends Object implements 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

      public IteratorEnumeration(Iterator<E> iterator)
  • Method Details