added a setInt in support of PR #390

This commit is contained in:
Jeremy Long
2015-10-23 06:28:04 -04:00
parent 626e93c7e3
commit 0c5bdfd7b7

View File

@@ -467,6 +467,17 @@ public final class Settings {
setString(key, Boolean.toString(value));
}
/**
* Sets a property value.
*
* @param key the key for the property
* @param value the value for the property
*/
public static void setInt(String key, int value) {
localSettings.get().props.setProperty(key, String.valueOf(value));
LOGGER.debug("Setting: {}='{}'", key, value);
}
/**
* Merges a new properties file into the current properties. This method allows for the loading of a user provided properties
* file.<br/><br/>