@Test public void testSizeWithParam() { final int expectedWoodwinds = 12; final int expectedBrass = 4; final int expectedPercussion = 5; final int expectedStrings = 6; assertEquals(0, orchestraMap.size("invalid")); assertEquals(0, orchestraMap2.size("invalid")); assertEquals(expectedWoodwinds, orchestraMap.size("Woodwind")); assertEquals(expectedWoodwinds, orchestraMap2.size("Woodwind")); assertEquals(expectedBrass, orchestraMap.size("Brass")); assertEquals(expectedBrass, orchestraMap2.size("Brass")); assertEquals(expectedPercussion, orchestraMap.size("Percussion")); assertEquals(expectedPercussion, orchestraMap2.size("Percussion")); assertEquals(expectedStrings, orchestraMap.size("Strings")); assertEquals(expectedStrings, orchestraMap2.size("Strings")); }
public int size() { return map.size(); }
TwoDHashMap { public int size() { return map.size(); } }
TwoDHashMap { public int size() { return map.size(); } TwoDHashMap();  TwoDHashMap(final HashMap<K1, HashMap<K2, V>> map); }
TwoDHashMap { public int size() { return map.size(); } 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 int size() { return map.size(); } 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();  }