@Test public void testAsMap() { DomainNameMapping<String> mapping = new DomainNameMapping<String>("NotFound") .add("netty.io", "Netty") .add("downloads.netty.io", "Netty-Downloads"); Map<String, String> entries = mapping.asMap(); assertEquals(2, entries.size()); assertEquals("Netty", entries.get("netty.io")); assertEquals("Netty-Downloads", entries.get("downloads.netty.io")); }
public Map<String, V> asMap() { return unmodifiableMap; }
DomainNameMapping implements Mapping<String, V> { public Map<String, V> asMap() { return unmodifiableMap; } }
DomainNameMapping implements Mapping<String, V> { public Map<String, V> asMap() { return unmodifiableMap; } @Deprecated  DomainNameMapping(V defaultValue); @Deprecated  DomainNameMapping(int initialCapacity, V defaultValue);   DomainNameMapping(Map<String, V> map, V defaultValue); }
DomainNameMapping implements Mapping<String, V> { public Map<String, V> asMap() { return unmodifiableMap; } @Deprecated  DomainNameMapping(V defaultValue); @Deprecated  DomainNameMapping(int initialCapacity, V defaultValue);   DomainNameMapping(Map<String, V> map, V defaultValue); @Deprecated DomainNameMapping<V> add(String hostname, V output); @Override V map(String hostname); Map<String, V> asMap(); @Override String toString(); }
DomainNameMapping implements Mapping<String, V> { public Map<String, V> asMap() { return unmodifiableMap; } @Deprecated  DomainNameMapping(V defaultValue); @Deprecated  DomainNameMapping(int initialCapacity, V defaultValue);   DomainNameMapping(Map<String, V> map, V defaultValue); @Deprecated DomainNameMapping<V> add(String hostname, V output); @Override V map(String hostname); Map<String, V> asMap(); @Override String toString();  }