1 // Copyright 2006 all rights reserved; see LICENSE file for BSD-style license
3 package edu.berkeley.sbp.util;
6 /** a Map that knows how to apply an Invokable to all its elements */
7 public interface VisitableMap<K,V> {
9 /** invokes <tt>ivbc</tt> on each element of this map, passing constant arguments <tt>b</tt> and <tt>c</tt> */
10 public <B,C> void invoke(K k, Invokable<V,B,C> ivbc, B b, C c);
12 /** returns true iff this map contains some value <tt>v</tt> for key <tt>k</tt> */
13 public boolean contains(K k);