@Test public void testRemoveByName() { final ConfigItemMapNamed m = new ConfigItemMapNamed("mapnamed"); m.put(this.set); Assert.assertEquals(1, m.size()); Assert.assertNull(m.removeByName("s")); Assert.assertEquals(1, m.size()); Assert.assertEquals(this.set, m.removeByName("set")); Assert.assertEquals(0, m.size()); Assert.assertTrue(m.isEmpty()); }
public ConfigItemMapEntry removeByName(final String name) { return this.map.remove(name); }
ConfigItemMapNamed implements ConfigItemCollection<ConfigItemMapEntry> { public ConfigItemMapEntry removeByName(final String name) { return this.map.remove(name); } }
ConfigItemMapNamed implements ConfigItemCollection<ConfigItemMapEntry> { public ConfigItemMapEntry removeByName(final String name) { return this.map.remove(name); } ConfigItemMapNamed(final String name); }
ConfigItemMapNamed implements ConfigItemCollection<ConfigItemMapEntry> { public ConfigItemMapEntry removeByName(final String name) { return this.map.remove(name); } ConfigItemMapNamed(final String name); @Override String getName(); @Override int size(); @Override boolean isEmpty(); boolean contains(final String name); ConfigItemMapEntry getByName(final String name); ConfigItemMapEntry put(final ConfigItemMapEntry value); ConfigItemMapEntry removeByName(final String name); @Override Iterator<ConfigItemMapEntry> iterator(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); void clear(); }
ConfigItemMapNamed implements ConfigItemCollection<ConfigItemMapEntry> { public ConfigItemMapEntry removeByName(final String name) { return this.map.remove(name); } ConfigItemMapNamed(final String name); @Override String getName(); @Override int size(); @Override boolean isEmpty(); boolean contains(final String name); ConfigItemMapEntry getByName(final String name); ConfigItemMapEntry put(final ConfigItemMapEntry value); ConfigItemMapEntry removeByName(final String name); @Override Iterator<ConfigItemMapEntry> iterator(); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); void clear();  }