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