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

Method tryParse

output/java_guava/1.4.18/Ints.java:677–682  ·  view source on GitHub ↗

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

(String string)

Source from the content-addressed store, hash-verified

675 */
676
677 @Beta
678 @Nullable
679 @CheckForNull
680 public static Integer tryParse(String string) {
681 return tryParse(string, 10);
682 }
683
684 /**
685 * Parses the specified string as a signed integer value using the specified radix. The ASCII

Callers

nothing calls this directly

Calls 3

tryParseMethod · 0.95
longValueMethod · 0.45
intValueMethod · 0.45

Tested by

no test coverage detected