public final void setStepSize ( final int stepSize ) { Condition . INSTANCE . ensureAtLeast ( stepSize , 1 , "The step size must be at least 1" ) ; Condition . INSTANCE . ensureAtMaximum ( stepSize , getRange ( ) , "The step size must be at maximum the range" ) ; this . stepSize = stepSize ; setNumber ( adaptToStepSize ( getNumber ( ) ) ) ; }
Sets the step size the number should be increased or decreased by when moving the selector wheel .