protected String normalizeValue(String value){
  Comparable<T> comparableValue=null;
  try {
    comparableValue=convertToComparable(value);
  }
 catch (  NumberFormatException e) {
    return DEFAULT_VALUE;
  }
  if (MAX_VALUE != null && comparableValue.compareTo(MAX_VALUE) > 0) {
    return MAX_VALUE.toString();
  }
 else   if (MIN_VALUE != null && comparableValue.compareTo(MIN_VALUE) < 0) {
    return MIN_VALUE.toString();
  }
  return value;
}

protected String normalizeValue ( String value ) { Comparable < T > comparableValue = null ; try { comparableValue = convertToComparable ( value ) ; } catch ( NumberFormatException e ) { return DEFAULT_VALUE ; } if ( MAX_VALUE != null && comparableValue . compareTo ( MAX_VALUE ) > 0 ) { return MAX_VALUE . toString ( ) ; } else if ( MIN_VALUE != null && comparableValue . compareTo ( MIN_VALUE ) < 0 ) { return MIN_VALUE . toString ( ) ; } return value ; }
normalizes a value to an acceptable value for this setting .
