copyright notices/updates
[sbp.git] / src / edu / berkeley / sbp / util / EmptyIterator.java
1 // Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
2
3 package edu.berkeley.sbp.util;
4 import java.util.*;
5
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; }
11 }