/** * Sets a value of type <code>Boolean</code>. * * @param key the key * @param newValue the new value * * @throws IllegalArgumentException */ public void setPropertyBool(String key, Boolean newValue) { Guardian.assertNotNullOrEmpty("key", key); Boolean oldValue = getPropertyBool(key, null); changeInternalProperty(key, oldValue, newValue); }
/** * Sets a value of type <code>Integer</code>. * * @param key the key * @param newValue the value * * @throws IllegalArgumentException */ public void setPropertyInt(String key, Integer newValue) { Guardian.assertNotNullOrEmpty("key", key); Integer oldValue = getPropertyInt(key, null); changeInternalProperty(key, oldValue, newValue); }
/** * Sets a value of type <code>Double</code>. * * @param key the key * @param newValue the value * * @throws IllegalArgumentException */ public void setPropertyDouble(String key, Double newValue) { Guardian.assertNotNullOrEmpty("key", key); Double oldValue = getPropertyDouble(key, null); changeInternalProperty(key, oldValue, newValue); }
/** * Sets a value of type <code>String</code>. * * @param key the key * @param newValue the new value * * @throws IllegalArgumentException */ public void setPropertyString(String key, String newValue) { Guardian.assertNotNullOrEmpty("key", key); String oldValue = getPropertyString(key, null); changeInternalProperty(key, oldValue, newValue); }