checkpoint
[sbp.git] / src / edu / berkeley / sbp / util / EmptyIterator.java
1 package edu.berkeley.sbp.util;
2 import java.util.*;
3
4 public final class EmptyIterator<T> implements Iterable<T>, Iterator<T> {
5     public void        remove()   { throw new Error(); }
6     public boolean     hasNext()  { return false; }
7     public T           next()     { throw new Error(); }
8     public Iterator<T> iterator() { return this; }
9 }