1 11 12 package org.eclipse.core.internal.databinding.validation; 13 14 import org.eclipse.core.internal.databinding.conversion.NumberToIntegerConverter; 15 import org.eclipse.core.internal.databinding.conversion.StringToNumberParser; 16 17 24 public class NumberToIntegerValidator extends NumberToNumberValidator { 25 private static final Integer MIN = new Integer (Integer.MIN_VALUE); 26 private static final Integer MAX = new Integer (Integer.MAX_VALUE); 27 28 31 public NumberToIntegerValidator(NumberToIntegerConverter converter) { 32 super(converter, MIN, MAX); 33 } 34 35 38 protected boolean inRange(Number number) { 39 return StringToNumberParser.inIntegerRange(number); 40 } 41 } 42 | Popular Tags |