public static Short asShort(Object value) { if (value == null) return null; if (value instanceof Number) return ((Number) value).shortValue(); return Short.valueOf(value.toString()); }
public static String format(short value, String format) { return NumberUtils.format(Short.valueOf(value), format); }