code: public void setMax(int max)
      {
          this.max = max;
          if (this.max < Alterable.MIN)
          {
              this.max = Alterable.MIN;
          }
          set(cur);
      }
docs: Set maximum reachable value. The maximum value can not be lower than 0. Current value clamp between {@value #MIN}
  and max if over max set.
  
  @param max The maximum reachable value.