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