/** * Sets a Long.<br> * If the value is the same as in systemspace, the user value is removed. * Null-values also perform a remove. * * @param key the preferences key * @param val the value */ public void setLong(String key, Long val) { setString(key, val == null ? null : val.toString()); }
/** * Sets a Double.<br> * If the value is the same as in systemspace, the user value is removed. * Null-values also perform a remove. * * @param key the preferences key * @param val the value */ public void setDouble(String key, Double val) { setString(key, val == null ? null : val.toString()); }
/** * Sets a Boolean.<br> * If the value is the same as in systemspace, the user value is removed. * Null-values also perform a remove. * * @param key the preferences key * @param val the value */ public void setBoolean(String key, Boolean val) { setString(key, val == null ? null : val.toString()); }
/** * Sets an integer.<br> * If the value is the same as in systemspace, the user value is removed. * Null-values also perform a remove. * * @param key the preferences key * @param val the value */ public void setInteger(String key, Integer val) { setString(key, val == null ? null : val.toString()); }
/** * Sets a Float.<br> * If the value is the same as in systemspace, the user value is removed. * Null-values also perform a remove. * * @param key the preferences key * @param val the value */ public void setFloat(String key, Float val) { setString(key, val == null ? null : val.toString()); }