@Test public void testGetByName() { Assert.assertNull(this.singleton.getByName("x")); Assert.assertEquals(this.item, this.singleton.getByName("n")); }
public ConfigBlock getByName(final String name) { if (this.block.getName().equals(name)) { return this.block; } else { return null; } }
ConfigItemMapEntrySingleton implements ConfigItemMapEntry { public ConfigBlock getByName(final String name) { if (this.block.getName().equals(name)) { return this.block; } else { return null; } } }
ConfigItemMapEntrySingleton implements ConfigItemMapEntry { public ConfigBlock getByName(final String name) { if (this.block.getName().equals(name)) { return this.block; } else { return null; } } ConfigItemMapEntrySingleton(final String name, final ConfigBlock block); }
ConfigItemMapEntrySingleton implements ConfigItemMapEntry { public ConfigBlock getByName(final String name) { if (this.block.getName().equals(name)) { return this.block; } else { return null; } } ConfigItemMapEntrySingleton(final String name, final ConfigBlock block); static ConfigItemMapEntrySingleton createSingleton(final String name,
                                                              final ConfigBlock configBlock); static ConfigItemMapEntrySingleton createSingleton(final ConfigBlock configBlock); @Override String getName(); @Override int size(); @Override boolean isEmpty(); @Override boolean add(final ConfigBlock block); @Override ConfigBlock put(final ConfigBlock block); boolean contains(final String name); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override Iterator<ConfigBlock> iterator(); @Override boolean add(final String name, final String type, final String value); ConfigBlock getByName(final String name); String set(final String name, final String value); String set(final String value); }
ConfigItemMapEntrySingleton implements ConfigItemMapEntry { public ConfigBlock getByName(final String name) { if (this.block.getName().equals(name)) { return this.block; } else { return null; } } ConfigItemMapEntrySingleton(final String name, final ConfigBlock block); static ConfigItemMapEntrySingleton createSingleton(final String name,
                                                              final ConfigBlock configBlock); static ConfigItemMapEntrySingleton createSingleton(final ConfigBlock configBlock); @Override String getName(); @Override int size(); @Override boolean isEmpty(); @Override boolean add(final ConfigBlock block); @Override ConfigBlock put(final ConfigBlock block); boolean contains(final String name); @Override void appendXMLContent(final XMLUtil util, final Appendable appendable); @Override Iterator<ConfigBlock> iterator(); @Override boolean add(final String name, final String type, final String value); ConfigBlock getByName(final String name); String set(final String name, final String value); String set(final String value);  }