public final class Settings extends Object
Modifier and Type | Field and Description |
---|---|
private static Map<String,Object> |
override |
private static Map<String,Object> |
settings |
Modifier | Constructor and Description |
---|---|
private |
Settings() |
Modifier and Type | Method and Description |
---|---|
private static Object |
get(String key) |
static boolean |
getBoolean(String key)
Returns boolean value of specified key
|
static double |
getDouble(String key)
Returns Double value of specified key
|
static int |
getInt(String key)
Returns int value of specified key
|
static String |
getString(String key)
Returns String value of specified key
|
static boolean |
hasKey(String key)
Checks if Collection contains element with specified key
|
static void |
parseCommandLine(String[] args)
Stores any settings from the command line into the override map.
|
private static Object |
parseValue(String str) |
static void |
setCommandLineOverrides()
Copies the values from the override map (command line arguments)
into the main settings map.
|
private static void |
setDefaults() |
static void |
setIntValue(String key,
int value)
Sets int value of Map element with specified key
|
static void |
setValue(String key,
Object value)
Sets Object value of Map element with specified key
|
private static void setDefaults()
public static void setValue(String key, Object value)
key
- value
- public static void setIntValue(String key, int value)
key
- value
- public static void parseCommandLine(String[] args)
args
- public static void setCommandLineOverrides()
public static boolean hasKey(String key)
key
- public static double getDouble(String key)
key
- public static boolean getBoolean(String key)
key
- public static String getString(String key)
key
- public static int getInt(String key)
key
-