projects
/
sbp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a second parameter argument to Invokable (two params now)
[sbp.git]
/
src
/
edu
/
berkeley
/
sbp
/
util
/
FastSet.java
diff --git
a/src/edu/berkeley/sbp/util/FastSet.java
b/src/edu/berkeley/sbp/util/FastSet.java
index
c8302b5
..
4e289cd
100644
(file)
--- a/
src/edu/berkeley/sbp/util/FastSet.java
+++ b/
src/edu/berkeley/sbp/util/FastSet.java
@@
-43,10
+43,10
@@
public /*final*/ class FastSet<T> implements Iterator<T>, Iterable<T>, Visitable
if (found) size--;
}
if (found) size--;
}
- public <B> void visit(Invokable<T,B> ivbc, B b) {
- if (only!=null) ivbc.invoke(only, b);
+ public <B,C> void visit(Invokable<T,B,C> ivbc, B b, C c) {
+ if (only!=null) ivbc.invoke(only, b, c);
else for(int j=0; j<size; j++)
else for(int j=0; j<size; j++)
- ivbc.invoke((T)array[j], b);
+ ivbc.invoke((T)array[j], b, c);
}
public int size() { return only==null ? size : 1; }
}
public int size() { return only==null ? size : 1; }