org.junit.extensions.cpsuite.NullIterator Maven / Gradle / Ivy
The newest version!
/*
* @author Johannes Link ([email protected])
*
* Published under Apache License, Version 2.0 (http://apache.org/licenses/LICENSE-2.0)
*/
package org.junit.extensions.cpsuite;
import java.util.*;
public class NullIterator implements Iterable, Iterator {
public Iterator iterator() {
return this;
}
public boolean hasNext() {
return false;
}
public T next() {
throw new NoSuchElementException();
}
public void remove() {
}
}