Class OptionsRangeInterval

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

public class OptionsRangeInterval extends ConfigOptions
Creates a numeric range based on dividing a given range into the specified interval. For example, if start = 0 and end = 10 and interval = 5 then there will be three values: 0, 5, 10. If the range is not evenly divisible by the interval then the final interval may be longer or shorter than expected. The actual results are subject to the iterpolation used by the actual implementation but start and end must always be in the list.
Version:
2023-10-30
  • Field Details

  • Constructor Details

    • OptionsRangeInterval

      public OptionsRangeInterval()
  • 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()
    • getInterval

      public double getInterval()
    • getDecimals

      public int getDecimals()
    • setStart

      public void setStart(double start)
    • setEnd

      public void setEnd(double end)
    • setInterval

      public void setInterval(double interval)
    • setDecimals

      public void setDecimals(int decimals)