faster MultiMap.isEmpty()

This commit is contained in:
peter
2011-10-10 16:48:00 +02:00
parent 4a5803d365
commit 0f5017686e
@@ -82,6 +82,8 @@ public class MultiMap<K, V> {
}
public boolean isEmpty() {
if (myMap.isEmpty()) return true;
for(Collection<V> valueList: myMap.values()) {
if (!valueList.isEmpty()) {
return false;