MCPcopy Create free account
hub / github.com/davidgiven/luje / parseShort

Method parseShort

lib/java/lang/Short.java:186–188  ·  view source on GitHub ↗

Parses the specified string as a signed decimal short value. The ASCII character \u002d ('-') is recognized as the minus sign. @param string the string representation of a short value. @return the primitive short value represented by string. @throws NumberFormatException

(String string)

Source from the content-addressed store, hash-verified

184 * can not be parsed as a short value.
185 */
186 public static short parseShort(String string) throws NumberFormatException {
187 return parseShort(string, 10);
188 }
189
190 /**
191 * Parses the specified string as a signed short value using the specified

Callers 2

ShortMethod · 0.95
valueOfMethod · 0.95

Calls 1

parseIntMethod · 0.95

Tested by

no test coverage detected