1 package annotations.util.coll; 2 3 /** 4 * A {@link Keyer} supplies keys for the elements of a {@link KeyedSet}. 5 * @param <K> the key type 6 * @param <V> the element type 7 */ 8 public interface Keyer<K, V> { 9 /** 10 * Returns the key that this keyer wishes to assign to the element 11 * <code>v</code>. 12 */ getKeyFor(V v)13 public abstract K getKeyFor(V v); 14 } 15