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