Class AdditionalOptions

    • Constructor Detail

      • AdditionalOptions

        public AdditionalOptions()
        Initializes an empty container.
    • Method Detail

      • putBoolean

        public void putBoolean​(String key,
                               Boolean value)
        Stores the given boolean value under the specified key.
        Parameters:
        key - the key to store the value under
        value - the boolean value to store
      • putInteger

        public void putInteger​(String key,
                               Integer value)
        Stores the given integer value under the specified key.
        Parameters:
        key - the key to store the value under
        value - the integer value to store
      • putDouble

        public void putDouble​(String key,
                              Double value)
        Stores the given double value under the specified key.
        Parameters:
        key - the key to store the value under
        value - the double value to store
      • putString

        public void putString​(String key,
                              String value)
        Stores the given string value under the specified key.
        Parameters:
        key - the key to store the value under
        value - the string value to store
      • putPlaceholderFile

        public void putPlaceholderFile​(String key,
                                       PlaceholderFile value)
        Stores the given placeholder file value under the specified key.
        Parameters:
        key - the key to store the value under
        value - the placeholder file value to store
      • getBoolean

        public Boolean getBoolean​(String key)
        Returns the stored boolean.
        Parameters:
        key - the key to look for
        Returns:
        the value or null if not found
      • getBoolean

        public Boolean getBoolean​(String key,
                                  Boolean defValue)
        Returns the stored boolean or the default value if not found.
        Parameters:
        key - the key to look for
        defValue - the default value
        Returns:
        the value or the default value if not found
      • getInteger

        public Integer getInteger​(String key)
        Returns the stored integer.
        Parameters:
        key - the key to look for
        Returns:
        the value or null if not found
      • getInteger

        public Integer getInteger​(String key,
                                  Integer defValue)
        Returns the stored integer or the default value if not found.
        Parameters:
        key - the key to look for
        defValue - the default value
        Returns:
        the value or the default value if not found
      • getDouble

        public Double getDouble​(String key)
        Returns the stored double.
        Parameters:
        key - the key to look for
        Returns:
        the value or null if not found
      • getDouble

        public Double getDouble​(String key,
                                Double defValue)
        Returns the stored double or the default value if not found.
        Parameters:
        key - the key to look for
        defValue - the default value
        Returns:
        the value or the default value if not found
      • getString

        public String getString​(String key)
        Returns the stored string.
        Parameters:
        key - the key to look for
        Returns:
        the value or null if not found
      • getString

        public String getString​(String key,
                                String defValue)
        Returns the stored string or the default value if not found.
        Parameters:
        key - the key to look for
        defValue - the default value
        Returns:
        the value or the default value if not found
      • getPlaceholderFile

        public PlaceholderFile getPlaceholderFile​(String key)
        Returns the stored placeholder file.
        Parameters:
        key - the key to look for
        Returns:
        the value or null if not found
      • getPlaceholderFile

        public PlaceholderFile getPlaceholderFile​(String key,
                                                  PlaceholderFile defValue)
        Returns the stored placeholder file or the default value if not found.
        Parameters:
        key - the key to look for
        defValue - the default value
        Returns:
        the value or the default value if not found