![JAR search and dependency download from the Maven repository](/logo.png)
org.d2ab.iterator.ImmutableIterator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sequence Show documentation
Show all versions of sequence Show documentation
A lightweight alternative to Java 8 sequential Stream
The newest version!
package org.d2ab.iterator;
import java.util.Iterator;
public class ImmutableIterator extends DelegatingUnaryIterator {
public ImmutableIterator(Iterator extends T> iterator) {
super(iterator);
}
@Override
public T next() {
return iterator.next();
}
@Override
public void remove() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy