return (i != null) ? i.shortValue() : (-1);
if (i != null) return i.shortValue(); try { return Short.parseShort(s); } catch (Exception e) { return (-1); }
static short typeValue(String s) {	Short i = (Short) types.get(s.toUpperCase());	return (i != null) ? i.shortValue() : (-1);}