/*
* ome.util.ContextFilter
*
* Copyright 2006 University of Dundee. All rights reserved.
* Use is subject to license terms supplied in LICENSE.txt
*/
package ome.util;
import java.util.Iterator;
import java.util.NoSuchElementException;
/**
* utility iterator which does nothing as quickly as possible.
*
* @author Josh Moore <a
* href="mailto:josh.moore@gmx.de">josh.moore@gmx.de</a>
* @version 3.0
* @since 3.0
*/
public class EmptyIterator<E> implements Iterator<E> {
public boolean hasNext() {
return false;
}
public E next() {
throw new NoSuchElementException();
}
public void remove() {
throw new UnsupportedOperationException();
}
}