/** * @deprecated Use the CharSequence version * @see #toShort(CharSequence) */ @Deprecated public static Short toShort(String self) { return toShort((CharSequence) self); }
@Deprecated public static Short toShort(CharSequence self) { return StringGroovyMethods.toShort(self); }
@Deprecated public static Short toShort(String self) { return StringGroovyMethods.toShort(self); }
return (T) toInteger((CharSequence)self); } else if (c == Short.class || c == Short.TYPE) { return (T) toShort((CharSequence)self); } else if (c == Byte.class || c == Byte.TYPE) { return (T) Byte.valueOf(self.trim());