1 package net.sf.twip.parameterhandler; 2 3 import net.sf.twip.util.Parameter; 4 5 public class IntegerParameterHandler extends AbstractNumberParameterHandler { 6 7 private static final Integer[] VALUES = new Integer[] { 1, 2, 3, 0, -1, -2, -3, 127, -127, 8 1024, -1024, Integer.MAX_VALUE, Integer.MIN_VALUE }; 9 10 public IntegerParameterHandler(Parameter parameter) { 11 super(parameter); 12 } 13 14 @Override 15 protected Comparable<? extends Number> getComparable(String numberExpression) { 16 return Integer.valueOf(numberExpression); 17 } 18 19 @Override 20 protected Object[] getDefaultParameterValues() { 21 return VALUES; 22 } 23 }