@Test public void testFactoryMethod() { assertEquals(Collections.<String, Object>emptyMap(), BdfDictionary.of()); assertEquals(Collections.singletonMap("foo", NULL_VALUE), BdfDictionary.of(new BdfEntry("foo", NULL_VALUE))); }
public static BdfDictionary of(Entry<String, ?>... entries) { BdfDictionary d = new BdfDictionary(); for (Entry<String, ?> e : entries) d.put(e.getKey(), e.getValue()); return d; }
BdfDictionary extends TreeMap<String, Object> { public static BdfDictionary of(Entry<String, ?>... entries) { BdfDictionary d = new BdfDictionary(); for (Entry<String, ?> e : entries) d.put(e.getKey(), e.getValue()); return d; } }
BdfDictionary extends TreeMap<String, Object> { public static BdfDictionary of(Entry<String, ?>... entries) { BdfDictionary d = new BdfDictionary(); for (Entry<String, ?> e : entries) d.put(e.getKey(), e.getValue()); return d; } BdfDictionary();  BdfDictionary(Map<String, ?> m); }
BdfDictionary extends TreeMap<String, Object> { public static BdfDictionary of(Entry<String, ?>... entries) { BdfDictionary d = new BdfDictionary(); for (Entry<String, ?> e : entries) d.put(e.getKey(), e.getValue()); return d; } BdfDictionary();  BdfDictionary(Map<String, ?> m); static BdfDictionary of(Entry<String, ?>... entries); Boolean getBoolean(String key); @Nullable Boolean getOptionalBoolean(String key); Boolean getBoolean(String key, Boolean defaultValue); Long getLong(String key); @Nullable Long getOptionalLong(String key); Long getLong(String key, Long defaultValue); Double getDouble(String key); @Nullable Double getOptionalDouble(String key); Double getDouble(String key, Double defaultValue); String getString(String key); @Nullable String getOptionalString(String key); String getString(String key, String defaultValue); byte[] getRaw(String key); @Nullable byte[] getOptionalRaw(String key); byte[] getRaw(String key, byte[] defaultValue); BdfList getList(String key); @Nullable BdfList getOptionalList(String key); BdfList getList(String key, BdfList defaultValue); BdfDictionary getDictionary(String key); @Nullable BdfDictionary getOptionalDictionary(String key); BdfDictionary getDictionary(String key, BdfDictionary defaultValue); }
BdfDictionary extends TreeMap<String, Object> { public static BdfDictionary of(Entry<String, ?>... entries) { BdfDictionary d = new BdfDictionary(); for (Entry<String, ?> e : entries) d.put(e.getKey(), e.getValue()); return d; } BdfDictionary();  BdfDictionary(Map<String, ?> m); static BdfDictionary of(Entry<String, ?>... entries); Boolean getBoolean(String key); @Nullable Boolean getOptionalBoolean(String key); Boolean getBoolean(String key, Boolean defaultValue); Long getLong(String key); @Nullable Long getOptionalLong(String key); Long getLong(String key, Long defaultValue); Double getDouble(String key); @Nullable Double getOptionalDouble(String key); Double getDouble(String key, Double defaultValue); String getString(String key); @Nullable String getOptionalString(String key); String getString(String key, String defaultValue); byte[] getRaw(String key); @Nullable byte[] getOptionalRaw(String key); byte[] getRaw(String key, byte[] defaultValue); BdfList getList(String key); @Nullable BdfList getOptionalList(String key); BdfList getList(String key, BdfList defaultValue); BdfDictionary getDictionary(String key); @Nullable BdfDictionary getOptionalDictionary(String key); BdfDictionary getDictionary(String key, BdfDictionary defaultValue); static final Object NULL_VALUE; }