1 package edu.berkeley.sbp.util;
4 /** a Map that knows how to apply an Invokable to all its elements */
5 public interface VisitableMap<K,V> {
7 /** invokes <tt>ivbc</tt> on each element of this map, passing constant arguments <tt>b</tt> and <tt>c</tt> */
8 public <B,C> void invoke(K k, Invokable<V,B,C> ivbc, B b, C c);
10 /** returns true iff this map contains some value <tt>v</tt> for key <tt>k</tt> */
11 public boolean contains(K k);