Class IntegerSetting

java.lang.Object
com.mparticle.sdk.model.registration.Setting
com.mparticle.sdk.model.registration.IntegerSetting

public final class IntegerSetting extends Setting
  • Constructor Details

    • IntegerSetting

      public IntegerSetting(String id, String name)
  • Method Details

    • getDefaultValue

      public Long getDefaultValue()
      Returns:
      default value
    • setDefaultValue

      public IntegerSetting setDefaultValue(Long defaultValue)
      Parameters:
      defaultValue - default value
      Returns:
      this
    • setDefaultValue

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

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

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

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

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

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

      public IntegerSetting setMaxValue(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