public class Configuration extends Object
Modifier and Type | Field and Description |
---|---|
private static Properties |
properties |
Constructor and Description |
---|
Configuration() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolean(String key)
Determines the boolean value of the property with the specified name.
|
static Integer |
getInteger(String key)
Determines the integer value of the property with the specified name.
|
static Integer |
getInteger(String key,
int value)
Determines the integer value of the property with the specified name.
|
static Long |
getLong(String key)
Determines the integer value of the property with the specified name.
|
static Long |
getLong(String key,
long value)
Determines the long value of the property with the specified name.
|
static String |
getProperty(String key)
Searches for the property with the specified key in the property list.
|
static String |
getProperty(String key,
String value)
Searches for the property with the specified key in the property list.
|
static void |
putProperty(String name,
String value)
Adds a new property to the configuration.
|
private static Properties properties
public static String getProperty(String key)
key
- the hashtable key.public static String getProperty(String key, String value)
key
- the hashtable key.value
- a default value.public static Integer getInteger(String key)
key
- property name.public static Integer getInteger(String key, int value)
key
- property name.value
- a default value.public static Long getLong(String key)
key
- property name.public static Long getLong(String key, long value)
key
- property name.value
- a default value.public static boolean getBoolean(String key)
key
- property name.Copyright © 2018 ScalAgent D.T.. All Rights Reserved.