public final class NumberUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<Integer> |
parseInteger(String string)
Parses the given string into an Integer.
|
@Nonnull public static 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–2019 Atlassian. All rights reserved.