Class OptionsRangeCount

java.lang.Object
com.tccc.kos.commons.core.service.config.options.ConfigOptions
com.tccc.kos.commons.core.service.config.options.OptionsRangeCount

public class OptionsRangeCount extends ConfigOptions
Creates a numeric range based on dividing a given range into a fixed number of values. For example, if start = 0 and end = 10 and count = 3 then there will be three values: 0, 5, 10. This implies that a count of less than two is meaningless as the start and end values are always in the list.
Version:
2023-10-30
  • Field Details

  • Constructor Details

    • OptionsRangeCount

      public OptionsRangeCount()
  • Method Details

    • getType

      public String getType()
      Description copied from class: ConfigOptions
      Return the options type
      Specified by:
      getType in class ConfigOptions
    • getStart

      public double getStart()
    • getEnd

      public double getEnd()
    • getCount

      public int getCount()
    • getDecimals

      public int getDecimals()
    • setStart

      public void setStart(double start)
    • setEnd

      public void setEnd(double end)
    • setCount

      public void setCount(int count)
    • setDecimals

      public void setDecimals(int decimals)