protected Integer adjustIntegerValue(Integer origValue,Integer minValue,Integer maxValue){
  Integer resultValue=origValue;
  if (resultValue.compareTo(minValue) < 0) {
    resultValue=minValue;
  }
  if (resultValue.compareTo(maxValue) > 0) {
    resultValue=maxValue;
  }
  return resultValue;
}

protected Integer adjustIntegerValue ( Integer origValue , Integer minValue , Integer maxValue ) { Integer resultValue = origValue ; if ( resultValue . compareTo ( minValue ) < 0 ) { resultValue = minValue ; } if ( resultValue . compareTo ( maxValue ) > 0 ) { resultValue = maxValue ; } return resultValue ; }
adjusts an integer value according to the specified range of values .
