You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Checks whether the String is a valid Java number.
557
+
* Tests whether the String is a valid Java number.
558
558
*
559
559
* <p>
560
560
* Valid numbers include hexadecimal marked with the {@code 0x} or {@code 0X} qualifier, octal numbers, scientific notation and numbers marked with a type
* Checks whether the String is a valid Java number.
608
+
* Tests whether the String is a valid Java number.
609
609
*
610
610
* <p>
611
611
* Valid numbers include hexadecimal marked with the {@code 0x} or {@code 0X} qualifier, octal numbers, scientific notation and numbers marked with a type
* Checks whether the given String is a parsable number.
640
-
*
639
+
* Tests whether the given String is a parsable number.
641
640
* <p>
642
641
* Parsable numbers include those Strings understood by {@link Integer#parseInt(String)}, {@link Long#parseLong(String)}, {@link Float#parseFloat(String)}
643
642
* or {@link Double#parseDouble(String)}. This method can be used instead of catching {@link java.text.ParseException} when calling one of those methods.
644
643
* </p>
645
-
*
646
644
* <p>
647
-
* Scientific notation (for example, {@code "1.2e-5"}) and type suffixes (e.g., {@code "2.0f"}, {@code "2.0d"}) are supported
648
-
* as they are valid for {@link Float#parseFloat(String)} and {@link Double#parseDouble(String)}.
645
+
* Scientific notation (for example, {@code "1.2e-5"}) and type suffixes (e.g., {@code "2.0f"}, {@code "2.0d"}) are supported as they are valid for
646
+
* {@link Float#parseFloat(String)} and {@link Double#parseDouble(String)} as are {@code "NaN"}, {@code "Infinity"}, {@code "+Infinity"}, and
647
+
* {@code "-Infinity"}. Callers requiring finite-only validation should compose with {@link Double#isFinite(double)}.
649
648
* </p>
650
-
*
651
649
* <p>
652
650
* {@code null} and empty String will return {@code false}.
0 commit comments