1 // Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
3 package edu.berkeley.sbp.util;
6 public final class EmptyIterator<T> implements Iterable<T>, Iterator<T> {
7 public void remove() { throw new Error(); }
8 public boolean hasNext() { return false; }
9 public T next() { throw new Error(); }
10 public Iterator<T> iterator() { return this; }