Skip to content

Commit d8abb63

Browse files
committed
Javadoc
1 parent f43a9aa commit d8abb63

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

src/main/java/org/apache/commons/lang3/math/NumberUtils.java

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -554,7 +554,7 @@ private static boolean isAllZeros(final String str) {
554554
}
555555

556556
/**
557-
* Checks whether the String is a valid Java number.
557+
* Tests whether the String is a valid Java number.
558558
*
559559
* <p>
560560
* Valid numbers include hexadecimal marked with the {@code 0x} or {@code 0X} qualifier, octal numbers, scientific notation and numbers marked with a type
@@ -591,7 +591,7 @@ public static boolean isCreatable(final String str) {
591591
}
592592

593593
/**
594-
* Checks whether the {@link String} contains only digit characters.
594+
* Tests whether the {@link String} contains only digit characters.
595595
*
596596
* <p>
597597
* {@code null} and empty String will return {@code false}.
@@ -605,7 +605,7 @@ public static boolean isDigits(final String str) {
605605
}
606606

607607
/**
608-
* Checks whether the String is a valid Java number.
608+
* Tests whether the String is a valid Java number.
609609
*
610610
* <p>
611611
* Valid numbers include hexadecimal marked with the {@code 0x} or {@code 0X} qualifier, octal numbers, scientific notation and numbers marked with a type
@@ -636,18 +636,16 @@ public static boolean isNumber(final String str) {
636636
}
637637

638638
/**
639-
* Checks whether the given String is a parsable number.
640-
*
639+
* Tests whether the given String is a parsable number.
641640
* <p>
642641
* Parsable numbers include those Strings understood by {@link Integer#parseInt(String)}, {@link Long#parseLong(String)}, {@link Float#parseFloat(String)}
643642
* or {@link Double#parseDouble(String)}. This method can be used instead of catching {@link java.text.ParseException} when calling one of those methods.
644643
* </p>
645-
*
646644
* <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)}.
649648
* </p>
650-
*
651649
* <p>
652650
* {@code null} and empty String will return {@code false}.
653651
* </p>

0 commit comments

Comments
 (0)