Class IntegerSetting


  • public final class IntegerSetting
    extends Setting
    • Constructor Detail

      • IntegerSetting

        public IntegerSetting​(java.lang.String id,
                              java.lang.String name)
    • Method Detail

      • getDefaultValue

        public java.lang.Long getDefaultValue()
        Returns:
        default value
      • setDefaultValue

        public IntegerSetting setDefaultValue​(java.lang.Long defaultValue)
        Parameters:
        defaultValue - default value
        Returns:
        this
      • setDefaultValue

        public IntegerSetting setDefaultValue​(java.lang.Integer defaultValue)
        Parameters:
        defaultValue - default value
        Returns:
        this
      • getMinValue

        public java.lang.Long getMinValue()
        Returns:
        minimum accepted value
      • setMinValue

        public IntegerSetting setMinValue​(java.lang.Long minValue)
        Parameters:
        minValue - minimum accepted value
        Returns:
        this
      • setMinValue

        public IntegerSetting setMinValue​(java.lang.Integer minValue)
        Parameters:
        minValue - minimum accepted value
        Returns:
        this
      • getMaxValue

        public java.lang.Long getMaxValue()
        Returns:
        maximum accepted value
      • setMaxValue

        public IntegerSetting setMaxValue​(java.lang.Long maxValue)
        Parameters:
        maxValue - maximum accepted value
        Returns:
        this
      • setMaxValue

        public IntegerSetting setMaxValue​(java.lang.Integer maxValue)
        Parameters:
        maxValue - maximum accepted value
        Returns:
        this
      • isRequired

        public boolean isRequired()
        Returns:
        true if setting is required
      • setIsRequired

        public IntegerSetting setIsRequired​(boolean isRequired)
        Parameters:
        isRequired - true if setting is required
        Returns:
        this