change Invokable from two arguments to 3
[sbp.git] / src / edu / berkeley / sbp / util / VisitableMap.java
index ab41a81..314f55e 100644 (file)
@@ -1,7 +1,15 @@
+// Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
+
 package edu.berkeley.sbp.util;
 import java.util.*;
 
+/** a Map that knows how to apply an Invokable to all its elements */
 public interface VisitableMap<K,V> {
-    public <B,C> void invoke(K k, Invokable<V,B,C> ivbc, B b, C c);
+
+    /** 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);
+
+    /** returns true iff this map contains some value <tt>v</tt> for key <tt>k</tt> */
     public boolean contains(K k);
+
 }