/** * Adds a value to a specially organized map where the values are lists of objects. This somewhat simulates a map * that allows multiple values for the same key. * * @param map * to store value into * @param key * for which a value is added * @param value * to add * @param <K> * the type of key * @param <V> * the type of the list */ public static <K, V> void addToMapList(Map<K, List<V>> map, K key, V value) { InternalCommonsUtils.addToMapList(map, key, value); }
/** * Adds a value to a specially organized map where the values are lists of objects. This somewhat simulates a map * that allows multiple values for the same key. * * @param map * to store value into * @param key * for which a value is added * @param value * to add * @param <K> * the type of key * @param <V> * the type of the list */ public static <K, V> void addToMapList(Map<K, List<V>> map, K key, V value) { InternalCommonsUtils.addToMapList(map, key, value); }
public TypeCoercerImpl(Collection<CoercionTuple> tuples) { for (CoercionTuple tuple : tuples) { Class key = tuple.getSourceType(); InternalCommonsUtils.addToMapList(sourceTypeToTuple, key, tuple); } }