Class ConfigProperties.ConfigProperty

    • Method Detail

      • getName

        public String getName()
        Returns the name (map key) of this property.
      • getValue

        public String getValue()
        Returns the value of this property, which may or may not have been the default value.
        Returns:
        the property value. Will be null if both the configured value was missing and the default was given as null.
        See Also:
        isDefault()
      • isDefault

        public boolean isDefault()
        Returns false if this value appeared among the user-supplied values; false if it came from the application-provided default.
        Returns:
        whether this value is a default
      • getBooleanValue

        public boolean getBooleanValue()
        Returns the boolean value of this property, converting from string using the same rules as Boolean.valueOf(String).
      • getIntValue

        public int getIntValue()
        Returns the integer value of this property, converting from string using the same rules as Integer.parseInt(String).
        Throws:
        NumberFormatException - if the value cannot be parsed as an integer.