Class MapConf

    • Field Detail

      • parameters

        protected final Map<String,​?> parameters
    • Constructor Detail

      • MapConf

        protected MapConf​(Map<String,​?> parameters,
                          Conf fallback,
                          boolean explode)
    • Method Detail

      • getString

        public String getString​(String path)
        Gets a required parameter a a string.
        Parameters:
        path - the parameter path.
        Returns:
        the parameter value as a string.
      • getLong

        public long getLong​(String path)
        Gets a required parameter as a long.
        Parameters:
        path - the parameter path.
        Returns:
        the parameter value as a long.
      • getInt

        public int getInt​(String path)
        Gets a required parameter as an integer.
        Parameters:
        path - the parameter path.
        Returns:
        the parameter value as a int.
      • getBoolean

        public boolean getBoolean​(String path)
        Gets a required parameter as an boolean.
        Parameters:
        path - the parameter path.
        Returns:
        the parameter value as a boolean.
      • getDouble

        public double getDouble​(String path)
        Gets a required parameter as a double.
        Parameters:
        path - the parameter path.
        Returns:
        the parameter value as a double.
      • getStringList

        public List<String> getStringList​(String path)
        Gets a required parameter as a list.
        Parameters:
        path - the parameter path.
        Returns:
        a string list value.
      • getSubConf

        public Conf getSubConf​(String path)
        Gets a required parameter as a Conf.
        Parameters:
        path - the parameter path.
        Returns:
        a new Conf instance.
      • getSubConfList

        public List<Conf> getSubConfList​(String path)
        Gets a required parameter as a list of Conf.
        Parameters:
        path - the parameter path.
        Returns:
        a new list of Conf instances.
      • hasPath

        public boolean hasPath​(String path)
        Checks whether the specified path exists into this Conf.
        Parameters:
        path - the path to be checked.
        Returns:
        true if the path exists, false otherwise.
      • withFallback

        public Conf withFallback​(Conf fallback)
      • getConfAsMap

        public Map<String,​Object> getConfAsMap()
        Converts this Conf into a path-value map.
        Returns:
        a new Map instance containing the configuration values.
      • getConfAsProperties

        public Properties getConfAsProperties()
        Converts this Conf into a properties.
        Returns:
        a new Properties instance containing the configuration values.