public int squash(int value){
  return Math.min(Math.max(getMin(),value),getMax());
}

public int squash ( int value ) { return Math . min ( Math . max ( getMin ( ) , value ) , getMax ( ) ) ; }
normalize the value to fit within the bounds of the range .
