MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / parseLong

Method parseLong

vm/JavaAPI/src/java/lang/Long.java:111–113  ·  view source on GitHub ↗

Parses the string argument as a signed decimal long. The characters in the string must all be decimal digits, except that the first character may be an ASCII minus sign '-' ( u002d') to indicate a negative value. The resulting long value is returned, exactly as if the argument and the radix 10 were

(java.lang.String s)

Source from the content-addressed store, hash-verified

109 * Note that neither L nor l is permitted to appear at the end of the string as a type indicator, as would be permitted in Java programming language source code.
110 */
111 public static long parseLong(java.lang.String s) throws java.lang.NumberFormatException{
112 return parseLong(s, 10);
113 }
114
115 /**
116 * Parses the string argument as a signed long in the radix specified by the second argument. The characters in the string must all be digits of the specified radix (as determined by whether Character.digit returns a nonnegative value), except that the first character may be an ASCII minus sign '-' ('

Callers 15

longValMethod · 0.95
colorMethod · 0.95
parseLongMethod · 0.95
parseMethod · 0.95
parseLongMethod · 0.95
toLongValueMethod · 0.95
readHeadersMethod · 0.95
loadMethod · 0.95
fromTokenResponseMethod · 0.95
initMethod · 0.95

Calls 4

invalidLongMethod · 0.95
parseMethod · 0.95
lengthMethod · 0.65
charAtMethod · 0.65

Tested by 2

totalBridgeCallsMethod · 0.76
getLongMethod · 0.76