/** * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a * given key exists). */ @Override public Collection<V> get(K key) { if (delegate.containsKey(key)) { return unmodifiableValueCollection(delegate.get(key)); } return Collections.emptyList(); }
/** * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a * given key exists). */ @Override public Collection<V> get(K key) { if (delegate.containsKey(key)) { return unmodifiableValueCollection(delegate.get(key)); } return Collections.emptyList(); }
/** * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a * given key exists). */ @Override public Collection<V> get(K key) { if (delegate.containsKey(key)) { return unmodifiableValueCollection(delegate.get(key)); } return Collections.emptyList(); }
/** * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a * given key exists). */ @Override public Collection<V> get(K key) { if (delegate.containsKey(key)) { return unmodifiableValueCollection(delegate.get(key)); } return Collections.emptyList(); }
/** * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a * given key exists). */ @Override public Collection<V> get(K key) { if (delegate.containsKey(key)) { return unmodifiableValueCollection(delegate.get(key)); } return Collections.emptyList(); }
/** * Returns unmodifiable collections. Moreover, it does not trigger initialization of a new value collection (i.e. when no collection of values for a * given key exists). */ @Override public Collection<V> get(K key) { if (delegate.containsKey(key)) { return unmodifiableValueCollection(delegate.get(key)); } return Collections.emptyList(); }
@Override public Set<Entry<K, Collection<V>>> entrySet() { ImmutableSet.Builder<Entry<K, Collection<V>>> builder = ImmutableSet.builder(); for (Entry<K, C> entry : map.entrySet()) { builder.add(new MultimapEntry<K, Collection<V>>(entry.getKey(), Multimaps.unmodifiableValueCollection(entry.getValue()))); } return builder.build(); }
@Override public Set<Entry<K, Collection<V>>> entrySet() { ImmutableSet.Builder<Entry<K, Collection<V>>> builder = ImmutableSet.builder(); for (Entry<K, C> entry : map.entrySet()) { builder.add(new MultimapEntry<K, Collection<V>>(entry.getKey(), Multimaps.unmodifiableValueCollection(entry.getValue()))); } return builder.build(); }
@Override public Set<Entry<K, Collection<V>>> entrySet() { ImmutableSet.Builder<Entry<K, Collection<V>>> builder = ImmutableSet.builder(); for (Entry<K, C> entry : map.entrySet()) { builder.add(new MultimapEntry<K, Collection<V>>(entry.getKey(), Multimaps.unmodifiableValueCollection(entry.getValue()))); } return builder.build(); }
@Override public Set<Entry<K, Collection<V>>> entrySet() { ImmutableSet.Builder<Entry<K, Collection<V>>> builder = ImmutableSet.builder(); for (Entry<K, C> entry : map.entrySet()) { builder.add(new MultimapEntry<K, Collection<V>>(entry.getKey(), Multimaps.unmodifiableValueCollection(entry.getValue()))); } return builder.build(); }
@Override public Set<Entry<K, Collection<V>>> entrySet() { ImmutableSet.Builder<Entry<K, Collection<V>>> builder = ImmutableSet.builder(); for (Entry<K, C> entry : map.entrySet()) { builder.add(new MultimapEntry<K, Collection<V>>(entry.getKey(), Multimaps.unmodifiableValueCollection(entry.getValue()))); } return builder.build(); }
@Override public Set<Entry<K, Collection<V>>> entrySet() { ImmutableSet.Builder<Entry<K, Collection<V>>> builder = ImmutableSet.builder(); for (Entry<K, C> entry : getMap().entrySet()) { builder.add(new MultimapEntry<K, Collection<V>>(entry.getKey(), Multimaps.unmodifiableValueCollection(entry.getValue()))); } return builder.build(); }