
jedi.functional.EmptyIterator Maven / Gradle / Ivy
The newest version!
package jedi.functional;
import java.io.Serializable;
import java.util.Iterator;
import java.util.NoSuchElementException;
public final class EmptyIterator implements Iterator, Serializable {
public static final long serialVersionUID = 1L;
public boolean hasNext() {
return false;
}
public T next() {
throw new NoSuchElementException();
}
public void remove() {
throw new UnsupportedOperationException();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy