Class SettingsMap

java.lang.Object
com.strategyquant.lib.ValuesMap
com.strategyquant.lib.SettingsMap
All Implemented Interfaces:
com.strategyquant.lib.settings.IXMLAble, Serializable

public class SettingsMap extends ValuesMap
The Class SettingsMap.
See Also:
Serialized Form
  • Constructor Details

    • SettingsMap

      public SettingsMap()
  • Method Details

    • setIfNotExists

      public void setIfNotExists(String key, Object value)
      Sets the if not exists.
      Parameters:
      key - the key
      value - the value
    • getXML

      public org.jdom2.Element getXML()
      Gets the xml.
      Specified by:
      getXML in interface com.strategyquant.lib.settings.IXMLAble
      Overrides:
      getXML in class ValuesMap
      Returns:
      the xml
    • clone

      public SettingsMap clone()
      Clone.
      Overrides:
      clone in class ValuesMap
      Returns:
      the settings map
    • getDouble

      public static double getDouble(Object obj, double defaultValue)
      Gets the double.
      Parameters:
      obj - the obj
      defaultValue - the default value
      Returns:
      the double
    • getInt

      public static int getInt(Object obj, int defaultValue)
      Gets the int.
      Parameters:
      obj - the obj
      defaultValue - the default value
      Returns:
      the int
    • getBool

      public static boolean getBool(Object obj, boolean defaultValue)
      Gets the bool.
      Parameters:
      obj - the obj
      defaultValue - the default value
      Returns:
      the bool
    • getLong

      public static long getLong(Object obj, long defaultValue)
      Gets the long.
      Parameters:
      obj - the obj
      defaultValue - the default value
      Returns:
      the long