optimizations to IntPairMap.java
[sbp.git] / src / edu / berkeley / sbp / util / VisitableMap.java
index df6a1a1..c5f1a56 100644 (file)
@@ -1,8 +1,11 @@
+// Copyright 2006-2007 all rights reserved; see LICENSE file for BSD-style license
+
 package edu.berkeley.sbp.util;
 import java.util.*;
+import java.io.*;
 
 /** a Map that knows how to apply an Invokable to all its elements */
-public interface VisitableMap<K,V> {
+public interface VisitableMap<K,V> extends Serializable {
 
     /** invokes <tt>ivbc</tt> on each element of this map, passing constant arguments <tt>b</tt> and <tt>c</tt> */
     public <B,C> void invoke(K k, Invokable<V,B,C> ivbc, B b, C c);