Code example for SetMultimap

Methods: put

0
		return new MultiMapProxy<K,V>(hcMultiMap);
	} 
 
	public boolean put(K key, V value) {
		if(guavaMultiMap != null)
			return guavaMultiMap.put(key, value);
		return hcMultiMap.put(key, value);
	} 
 
	public Collection<V> get(K key) {
		if(guavaMultiMap != null) {
			synchronized (guavaMultiMap) {
				Set<V> c = guavaMultiMap.get(key);
				if(c != null)
					return new HashSet<V>(c);
				else 
					return null; 
			}			 
		} 
		return hcMultiMap.get(key);
Contextual code suggestions in your IDE  Get Codota for Java