Package com.strategyquant.lib
Class SettingsMap
java.lang.Object
com.strategyquant.lib.ValuesMap
com.strategyquant.lib.SettingsMap
- All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble
,Serializable
The Class SettingsMap.
- See Also:
- Serialized Form
-
Field Summary
Fields inherited from class com.strategyquant.lib.ValuesMap
BYTE_MISSING, DOUBLE_MISSING, FLOAT_MISSING, INT_MISSING, Log, LONG_MISSING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Clone.static boolean
Gets the bool.static double
Gets the double.static int
Gets the int.static long
Gets the long.org.jdom2.Element
getXML()
Gets the xml.void
setIfNotExists(String key, Object value)
Sets the if not exists.Methods inherited from class com.strategyquant.lib.ValuesMap
clear, containsKey, containsKey, fromJSON, get, get, get, getAllKeys, getBoolean, getBoolean, getDouble, getDouble, getInt, getInt, getLong, getLong, getStatsIntKeyFromString, getString, getString, hashCode, remove, removeIgnoredKeys, removeUnsavableValues, set, set, setFromXML, setFromXML, setString, toJSON
-
Constructor Details
-
SettingsMap
public SettingsMap()
-
-
Method Details
-
setIfNotExists
Sets the if not exists.- Parameters:
key
- the keyvalue
- the value
-
getXML
public org.jdom2.Element getXML()Gets the xml. -
clone
Clone. -
getDouble
Gets the double.- Parameters:
obj
- the objdefaultValue
- the default value- Returns:
- the double
-
getInt
Gets the int.- Parameters:
obj
- the objdefaultValue
- the default value- Returns:
- the int
-
getBool
Gets the bool.- Parameters:
obj
- the objdefaultValue
- the default value- Returns:
- the bool
-
getLong
Gets the long.- Parameters:
obj
- the objdefaultValue
- the default value- Returns:
- the long
-