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 parseNumberFormatException
Copyright © 2003–2020 Atlassian. All rights reserved.