optimizations to IntPairMap.java
[sbp.git] / src / edu / berkeley / sbp / util / EmptyIterator.java
index 3c6d197..4a65433 100644 (file)
@@ -1,7 +1,10 @@
+// Copyright 2006-2007 all rights reserved; see LICENSE file for BSD-style license
+
 package edu.berkeley.sbp.util;
 import java.util.*;
 package edu.berkeley.sbp.util;
 import java.util.*;
+import java.io.*;
 
 
-public final class EmptyIterator<T> implements Iterable<T>, Iterator<T> {
+public final class EmptyIterator<T> implements Iterable<T>, Iterator<T>, Serializable {
     public void        remove()   { throw new Error(); }
     public boolean     hasNext()  { return false; }
     public T           next()     { throw new Error(); }
     public void        remove()   { throw new Error(); }
     public boolean     hasNext()  { return false; }
     public T           next()     { throw new Error(); }