Class NumberUtil
java.lang.Object
com.atlassian.confluence.impl.util.NumberUtil
Number-related utility methods.
- Since:
- 6.7.0
-
Method Summary
Modifier and TypeMethodDescriptionparseInteger
(@Nullable String string) Parses the given string into an Integer.
-
Method Details
-
parseInteger
Parses the given string into an Integer. Returns anOptional
rather than anOptionalInt
, because they are easier to compose with other Optionals.- Parameters:
string
- the string to parse- Returns:
- an empty if the string is non-numeric, e.g. blank or alphanumeric
- See Also:
-