@Test public void testAddProperty() { Assert.assertFalse(ff4jConf.containsKey("myNewProp")); ff4jConf.addProperty("myNewProp", "hello"); Assert.assertTrue(ff4jConf.containsKey("myNewProp")); Assert.assertTrue(pStore.existProperty("myNewProp")); Assert.assertEquals("hello", pStore.readProperty("myNewProp").asString()); }
@Override public void addProperty(String key, Object value) { ff4jStore().createProperty(PropertyFactory.createProperty(key, value)); }
FF4jConfiguration extends AbstractConfiguration { @Override public void addProperty(String key, Object value) { ff4jStore().createProperty(PropertyFactory.createProperty(key, value)); } }
FF4jConfiguration extends AbstractConfiguration { @Override public void addProperty(String key, Object value) { ff4jStore().createProperty(PropertyFactory.createProperty(key, value)); } FF4jConfiguration();  FF4jConfiguration(PropertyStore ff4jPropertyStore); }
FF4jConfiguration extends AbstractConfiguration { @Override public void addProperty(String key, Object value) { ff4jStore().createProperty(PropertyFactory.createProperty(key, value)); } FF4jConfiguration();  FF4jConfiguration(PropertyStore ff4jPropertyStore); @Override Configuration subset(String prefix); @Override Properties getProperties(String key); @Override boolean isEmpty(); @Override boolean containsKey(String key); @Override void addProperty(String key, Object value); @SuppressWarnings("unchecked") @Override void setProperty(String key, Object value); @Override void clearProperty(String key); @Override void clear(); @Override Object getProperty(String key); @Override Iterator<String> getKeys(String prefix); @Override Iterator<String> getKeys(); @Override boolean getBoolean(String key); @Override Boolean getBoolean(String key, Boolean defaultValue); @Override boolean getBoolean(String key, boolean defaultValue); @Override byte getByte(String key); @Override byte getByte(String key, byte defaultValue); @Override Byte getByte(String key, Byte defaultValue); @Override double getDouble(String key); @Override double getDouble(String key, double defaultValue); @Override Double getDouble(String key, Double defaultValue); @Override float getFloat(String key); @Override float getFloat(String key, float defaultValue); @Override Float getFloat(String key, Float defaultValue); @Override int getInt(String key); @Override int getInt(String key, int defaultValue); @Override Integer getInteger(String key, Integer defaultValue); @Override long getLong(String key); @Override Long getLong(String key, Long defaultValue); @Override long getLong(String key, long defaultValue); @Override short getShort(String key); @Override short getShort(String key, short defaultValue); @Override Short getShort(String key, Short defaultValue); @Override BigDecimal getBigDecimal(String key); @Override BigDecimal getBigDecimal(String key, BigDecimal defaultValue); @Override BigInteger getBigInteger(String key); @Override BigInteger getBigInteger(String key, BigInteger defaultValue); @Override String getString(String key); @Override String getString(String key, String defaultValue); @Override List<Object> getList(String key); @Override List<Object> getList(String key, List<?> defaultValue); @Override String[] getStringArray(String key); PropertyStore ff4jStore(); PropertyStore getFf4jStore(); void setFf4jStore(PropertyStore ff4jStore); }
FF4jConfiguration extends AbstractConfiguration { @Override public void addProperty(String key, Object value) { ff4jStore().createProperty(PropertyFactory.createProperty(key, value)); } FF4jConfiguration();  FF4jConfiguration(PropertyStore ff4jPropertyStore); @Override Configuration subset(String prefix); @Override Properties getProperties(String key); @Override boolean isEmpty(); @Override boolean containsKey(String key); @Override void addProperty(String key, Object value); @SuppressWarnings("unchecked") @Override void setProperty(String key, Object value); @Override void clearProperty(String key); @Override void clear(); @Override Object getProperty(String key); @Override Iterator<String> getKeys(String prefix); @Override Iterator<String> getKeys(); @Override boolean getBoolean(String key); @Override Boolean getBoolean(String key, Boolean defaultValue); @Override boolean getBoolean(String key, boolean defaultValue); @Override byte getByte(String key); @Override byte getByte(String key, byte defaultValue); @Override Byte getByte(String key, Byte defaultValue); @Override double getDouble(String key); @Override double getDouble(String key, double defaultValue); @Override Double getDouble(String key, Double defaultValue); @Override float getFloat(String key); @Override float getFloat(String key, float defaultValue); @Override Float getFloat(String key, Float defaultValue); @Override int getInt(String key); @Override int getInt(String key, int defaultValue); @Override Integer getInteger(String key, Integer defaultValue); @Override long getLong(String key); @Override Long getLong(String key, Long defaultValue); @Override long getLong(String key, long defaultValue); @Override short getShort(String key); @Override short getShort(String key, short defaultValue); @Override Short getShort(String key, Short defaultValue); @Override BigDecimal getBigDecimal(String key); @Override BigDecimal getBigDecimal(String key, BigDecimal defaultValue); @Override BigInteger getBigInteger(String key); @Override BigInteger getBigInteger(String key, BigInteger defaultValue); @Override String getString(String key); @Override String getString(String key, String defaultValue); @Override List<Object> getList(String key); @Override List<Object> getList(String key, List<?> defaultValue); @Override String[] getStringArray(String key); PropertyStore ff4jStore(); PropertyStore getFf4jStore(); void setFf4jStore(PropertyStore ff4jStore);  }