EnumerationIterator.java
567 Bytes
/*
* Decompiled with CFR 0_118.
*/
package com.day.util;
import java.util.Enumeration;
import java.util.Iterator;
public class EnumerationIterator
implements Iterator {
private final Enumeration delegatee;
public EnumerationIterator(Enumeration delegatee) {
this.delegatee = delegatee;
}
public boolean hasNext() {
return this.delegatee.hasMoreElements();
}
public Object next() {
return this.delegatee.nextElement();
}
public void remove() {
throw new UnsupportedOperationException();
}
}