java.util.Iterator
public class NullIterator implements Iterator
{
public boolean hasNext() {
return false;
}
public Object next() {
throw new NoSuchElementException();
}
public void remove() {
throw new UnsupportedOperationException("nope!");
}
}
