All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.d2ab.iterator.ImmutableIterator Maven / Gradle / Ivy

package org.d2ab.iterator;

import java.util.Iterator;

public class ImmutableIterator extends DelegatingUnaryIterator {
	public ImmutableIterator(Iterator iterator) {
		super(iterator);
	}

	@Override
	public T next() {
		return iterator.next();
	}

	@Override
	public void remove() {
		throw new UnsupportedOperationException();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy