Class OptionsRangeInterval
java.lang.Object
com.tccc.kos.commons.core.service.config.options.ConfigOptions
com.tccc.kos.commons.core.service.config.options.OptionsRangeInterval
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoublegetEnd()doubledoublegetStart()getType()Return the options typevoidsetDecimals(int decimals) voidsetEnd(double end) voidsetInterval(double interval) voidsetStart(double start)
-
Field Details
-
TYPE
- See Also:
-
-
Constructor Details
-
OptionsRangeInterval
public OptionsRangeInterval()
-
-
Method Details
-
getType
Description copied from class:ConfigOptionsReturn the options type- Specified by:
getTypein classConfigOptions
-
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)
-