bug fix: retrieve by full key returned empty set, now correct
[IRC.git] / Robust / src / Util / MultiViewMap.java
index c8482c9196c38f0e15172cb71eb507e1501f3a8d..4ce0f9d343992d90313574838f4c81f2c57772d1 100644 (file)
@@ -221,6 +221,14 @@ public class MultiViewMap<T> {
     Set<MultiKey> getFullKeys( BitSet   view,\r
                                MultiKey partialKey ) {\r
 \r
+    if( view.equals( fullView ) ) {\r
+      Set<MultiKey> fullKeys = new HashSet<MultiKey>();\r
+      if( fullKey2value.containsKey( partialKey ) ) {\r
+        fullKeys.add( partialKey );\r
+      }\r
+      return fullKeys;\r
+    }\r
+\r
     Map<MultiKey, Set<MultiKey>> partialKey2fullKeys =\r
       getPartialKey2fullKeys( view );\r
     return getFullKeys( partialKey2fullKeys, partialKey );\r