001    package railo.runtime.type.it;
002    
003    import java.util.Enumeration;
004    import java.util.Iterator;
005    
006    public class EnumAsIt implements Iterator {
007            private Enumeration e;
008    
009            public EnumAsIt(Enumeration e){
010                    this.e=e;
011            }
012    
013            @Override
014            public boolean hasNext() {
015                    return e.hasMoreElements();
016            }
017    
018            @Override
019            public Object next() {
020                    return e.nextElement();
021            }
022    
023            @Override
024            public void remove() {
025                    throw new UnsupportedOperationException("this operation is not suppored");
026            }
027    }