public class NumberHelper
extends java.lang.Object
Constructor and Description |
---|
NumberHelper() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
formatPercentage(double d) |
static java.util.OptionalDouble |
parseDouble(java.lang.String arg)
Parses the arg to a double
|
static java.util.OptionalInt |
parseInt(java.lang.String arg)
Parses the arg to an integer
|
static java.util.Optional<java.lang.Integer> |
parseInteger(java.lang.String arg)
Deprecated.
Use
parseInt(String) |
static java.util.OptionalLong |
parseLong(java.lang.String arg)
Parses the arg to a long
|
@Deprecated public static java.util.Optional<java.lang.Integer> parseInteger(java.lang.String arg)
parseInt(String)
arg
- The arg to parsepublic static java.util.OptionalInt parseInt(java.lang.String arg)
arg
- The arg to parsepublic static java.util.OptionalLong parseLong(java.lang.String arg)
arg
- The arg to parsepublic static java.util.OptionalDouble parseDouble(java.lang.String arg)
arg
- The arg to parsepublic static java.lang.String formatPercentage(double d)