@Test public void testGet() { assertEquals(true, map.getBoolean("true")); assertEquals(Long.valueOf(1), map.getNumber("one")); assertEquals("string", map.getString("string")); assertNull(map.getNumber("true")); assertNull(map.getBoolean("bad")); }
@Override public Object get(Object o) { return values.get(o); }
AttributesMap implements Map<String, Object> { @Override public Object get(Object o) { return values.get(o); } }
AttributesMap implements Map<String, Object> { @Override public Object get(Object o) { return values.get(o); } private  AttributesMap(ImmutableMap<String, Object> values); }
AttributesMap implements Map<String, Object> { @Override public Object get(Object o) { return values.get(o); } private  AttributesMap(ImmutableMap<String, Object> values); static Builder newBuilder(); static AttributesMap empty(); String getString(String name); String getString(String name, String defaultValue); Long getNumber(String name); Long getNumber(String name, long defaultValue); Boolean getBoolean(String name); Boolean getBoolean(String name, boolean defaultValue); Class<?> getType(String name); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object o); @Override boolean containsValue(Object o); @Override Object get(Object o); @Override Object put(String s, Object o); @Override Object remove(Object o); @Override void putAll(Map<? extends String, ?> map); @Override void clear(); @Override Set<String> keySet(); @Override Collection<Object> values(); @Override Set<Entry<String, Object>> entrySet(); AttributesMap filter(Set<String> keys); }
AttributesMap implements Map<String, Object> { @Override public Object get(Object o) { return values.get(o); } private  AttributesMap(ImmutableMap<String, Object> values); static Builder newBuilder(); static AttributesMap empty(); String getString(String name); String getString(String name, String defaultValue); Long getNumber(String name); Long getNumber(String name, long defaultValue); Boolean getBoolean(String name); Boolean getBoolean(String name, boolean defaultValue); Class<?> getType(String name); @Override int size(); @Override boolean isEmpty(); @Override boolean containsKey(Object o); @Override boolean containsValue(Object o); @Override Object get(Object o); @Override Object put(String s, Object o); @Override Object remove(Object o); @Override void putAll(Map<? extends String, ?> map); @Override void clear(); @Override Set<String> keySet(); @Override Collection<Object> values(); @Override Set<Entry<String, Object>> entrySet(); AttributesMap filter(Set<String> keys);  }