★ Constructor
Creates the `Range` instance with a range of the given required `min`, `max` and optional current `value`, `step`
Range()
Range()
Creates the Range
instance with a range of the given required min
, max
and optional current value
, step
.
Parameters
The minimum range of generic type variable Min
to set with a new Range
instance.
The maximum range of generic type variable Max
to set with a new Range
instance.
The optional value of the number
type between the given min
and max
specifies the default value of a new Range
instance.
Optional step of generic type variable Step
to set with a new Range
instance, by default 1
.
The step is used by the range
accessor, getRange()
, getRangeOfStep()
and stepByStep()
methods to return the entire range and also by the valueDown()
, valueUp()
methods to respectively decrement, increment range value.
Example usage
Last updated