code: public final void setStepSize(final int stepSize) {
          if (stepSize != -1) {
              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;
          setValue(adaptToStepSize(getValue()));
      }
docs: Sets the step size, the value should be increased or decreased by, when moving the seek bar.
  
  @param stepSize
  The step size, which should be set, as an {@link Integer} value. The value must be at
  least 1 and at maximum the value of the method <code>getRange():int</code> or -1, if
  the preference should allow to select a value from a continuous range