public final class NumberUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static @NonNull Optional<Integer> |
parseInteger(@Nullable String string)
Parses the given string into an Integer.
|
public static @NonNull Optional<Integer> parseInteger(@Nullable String string)
Optional rather than an
OptionalInt, because they are easier to compose with other Optionals.string - the string to parseNumberFormatExceptionCopyright © 2003–2022 Atlassian. All rights reserved.