Add method 'entrySet' to MultiMap and use it.

This commit is contained in:
Sergey Evdokimov
2011-07-08 16:09:52 +04:00
parent b96e711428
commit c186908e60
@@ -77,6 +77,10 @@ public class MultiMap<K, V> {
list.add(value);
}
public Set<Map.Entry<K, Collection<V>>> entrySet() {
return myMap.entrySet();
}
public boolean isEmpty() {
for(Collection<V> valueList: myMap.values()) {
if (!valueList.isEmpty()) {