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