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