1 16 17 package org.apache.commons.jexl.util; 18 19 20 import java.util.Iterator ; 21 import java.util.Enumeration ; 22 23 30 public class EnumerationIterator implements Iterator { 31 34 private final Enumeration enumeration; 35 36 42 public EnumerationIterator(Enumeration enumer) { 43 enumeration = enumer; 44 } 45 46 51 public Object next() { 52 return enumeration.nextElement(); 53 } 54 55 60 public boolean hasNext() { 61 return enumeration.hasMoreElements(); 62 } 63 64 67 public void remove() { 68 } 70 71 } 72 | Popular Tags |