chaschev.io.CloseableIteratorImpl Maven / Gradle / Ivy
package chaschev.io;
import java.io.IOException;
import java.util.Iterator;
/**
* User: chaschev
* Date: 01/07/12
*/
public class CloseableIteratorImpl implements CloseableIterator {
final Iterator iterator;
public CloseableIteratorImpl(Iterator iterator) {
this.iterator = iterator;
}
@Override
public void close() throws IOException {
}
@Override
public boolean hasNext() {
return iterator.hasNext();
}
@Override
public T next() {
return iterator.next();
}
@Override
public void remove() {
iterator.remove();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy