com.jparams.store.UnmodifiableIterator Maven / Gradle / Ivy
package com.jparams.store;
import java.util.Iterator;
public class UnmodifiableIterator implements Iterator
{
private final Iterator iterator;
public UnmodifiableIterator(final Iterator iterator)
{
this.iterator = iterator;
}
@Override
public boolean hasNext()
{
return iterator.hasNext();
}
@Override
public V next()
{
return iterator.next();
}
@Override
public void remove()
{
throw new UnsupportedOperationException("remove");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy