projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
optimizations to IntPairMap.java
[sbp.git]
/
src
/
edu
/
berkeley
/
sbp
/
util
/
VisitableMap.java
diff --git
a/src/edu/berkeley/sbp/util/VisitableMap.java
b/src/edu/berkeley/sbp/util/VisitableMap.java
index
314f55e
..
c5f1a56
100644
(file)
--- a/
src/edu/berkeley/sbp/util/VisitableMap.java
+++ b/
src/edu/berkeley/sbp/util/VisitableMap.java
@@
-1,13
+1,14
@@
-// Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
+// 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.*;
/** a Map that knows how to apply an Invokable to all its elements */
/** 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> */
/** invokes <tt>ivbc</tt> on each element of this map, passing constant arguments <tt>b</tt> and <tt>c</tt> */
- public <B> void invoke(K k, Invokable<V,B> ivbc, B b);
+ public <B,C> void invoke(K k, Invokable<V,B,C> ivbc, B b, C c);
/** returns true iff this map contains some value <tt>v</tt> for key <tt>k</tt> */
public boolean contains(K k);
/** returns true iff this map contains some value <tt>v</tt> for key <tt>k</tt> */
public boolean contains(K k);