@Test public void testContainsKey() { final String key1 = "Woodwind"; final String key2 = "Bassoon"; assertTrue(orchestraMap.containsKey(key1, key2)); assertTrue(orchestraMap2.containsKey(key1, key2)); assertFalse(orchestraMap.containsKey("invalid", key2)); assertFalse(orchestraMap2.containsKey("invalid", key2)); assertFalse(orchestraMap.containsKey(key1, "invalid")); assertFalse(orchestraMap2.containsKey(key1, "invalid")); }
public boolean containsKey(final K1 firstKey, final K2 secondKey) { final HashMap<K2, V> innerMap = map.get(firstKey); if( innerMap == null ) { return false; } return innerMap.containsKey(secondKey); }
TwoDHashMap { public boolean containsKey(final K1 firstKey, final K2 secondKey) { final HashMap<K2, V> innerMap = map.get(firstKey); if( innerMap == null ) { return false; } return innerMap.containsKey(secondKey); } }
TwoDHashMap { public boolean containsKey(final K1 firstKey, final K2 secondKey) { final HashMap<K2, V> innerMap = map.get(firstKey); if( innerMap == null ) { return false; } return innerMap.containsKey(secondKey); } TwoDHashMap();  TwoDHashMap(final HashMap<K1, HashMap<K2, V>> map); }
TwoDHashMap { public boolean containsKey(final K1 firstKey, final K2 secondKey) { final HashMap<K2, V> innerMap = map.get(firstKey); if( innerMap == null ) { return false; } return innerMap.containsKey(secondKey); } TwoDHashMap();  TwoDHashMap(final HashMap<K1, HashMap<K2, V>> map); boolean containsKey(final K1 firstKey, final K2 secondKey); V get(final K1 firstKey, final K2 secondKey); Object set(final K1 firstKey, final K2 secondKey, final V value); int size(); int size(final K1 firstKey); Set<K1> keySet(); }
TwoDHashMap { public boolean containsKey(final K1 firstKey, final K2 secondKey) { final HashMap<K2, V> innerMap = map.get(firstKey); if( innerMap == null ) { return false; } return innerMap.containsKey(secondKey); } TwoDHashMap();  TwoDHashMap(final HashMap<K1, HashMap<K2, V>> map); boolean containsKey(final K1 firstKey, final K2 secondKey); V get(final K1 firstKey, final K2 secondKey); Object set(final K1 firstKey, final K2 secondKey, final V value); int size(); int size(final K1 firstKey); Set<K1> keySet();  }