change Invokable from two arguments to 3
[sbp.git] / src / edu / berkeley / sbp / util / FastSet.java
index 711c984..88475e2 100644 (file)
@@ -43,10 +43,10 @@ public /*final*/ class FastSet<T> implements Iterator<T>, Iterable<T>, Visitable
         if (found) size--;
     }
 
-    public <B,C> void visit(Invokable<T,B,C> ivbc, B b, C c) {
-        if (only!=null) ivbc.invoke(only, b, c);
+    public <B> void visit(Invokable<T,B> ivbc, B b) {
+        if (only!=null) ivbc.invoke(only, b);
         else for(int j=0; j<size; j++)
-            ivbc.invoke((T)array[j], b, c);
+            ivbc.invoke((T)array[j], b);
     }
 
     public int size() { return only==null ? size : 1; }