public void add(K key,V[] items){
  Set<V> values=map.get(key);
  if (values == null) {
    values=(sorted ? new TreeSet<V>() : new HashSet<V>());
    map.put(key,values);
  }
  values.addAll(Arrays.asList(items));
}

public void add ( K key , V [ ] items ) { Set < V > values = map . get ( key ) ; if ( values == null ) { values = ( sorted ? new TreeSet < V > ( ) : new HashSet < V > ( ) ) ; map . put ( key , values ) ; } values . addAll ( Arrays . asList ( items ) ) ; }
adds all items to the set of values associated with the key
