MCPcopy Create free account
hub / github.com/antlr/codebuff / tryParse

Method tryParse

output/java_guava/1.4.18/Longs.java:363–368  ·  view source on GitHub ↗

Parses the specified string as a signed decimal long value. The ASCII character '-' ( '\u002D' ) is recognized as the minus sign. Unlike Long#parseLong(String), this method returns null instead of throwing an exception if parsing fails. Additionally, this m

(String string)

Source from the content-addressed store, hash-verified

361 */
362
363 @Beta
364 @Nullable
365 @CheckForNull
366 public static Long tryParse(String string) {
367 return tryParse(string, 10);
368 }
369
370 /**
371 * Parses the specified string as a signed long value using the specified radix. The ASCII

Callers 1

tryParseMethod · 0.95

Calls 4

digitMethod · 0.95
isEmptyMethod · 0.65
checkNotNullMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected