public final class IntegerUtils extends Object
Modifier and Type | Method and Description |
---|---|
static int |
convert(String strToParse)
Convert a given String into an integer.
|
static int |
convert(String strToParse,
int nDefault)
Convert a given String into an integer.
|
static boolean |
isDefault(int nNumber)
Check if the given number is equal to
DEFAULT |
static boolean |
isNotNumeric(String strToCheck)
Check if the given String is not numerical
|
static boolean |
isNumeric(String strToCheck)
Check if the given String is numeric
|
public static int convert(String strToParse)
DEFAULT
.strToParse
- the String to convertpublic static int convert(String strToParse, int nDefault)
strToParse
- the String to parsenDefault
- the default value in case the conversion failspublic static boolean isNumeric(String strToCheck)
strToCheck
- the String to checkpublic static boolean isNotNumeric(String strToCheck)
strToCheck
- the String to checkpublic static boolean isDefault(int nNumber)
DEFAULT
nNumber
- the number to checkCopyright © 2020 City of Paris. All rights reserved.