public class IntegerUtils
extends java.lang.Object
| Constructor and Description |
|---|
IntegerUtils() |
| Modifier and Type | Method and Description |
|---|---|
static int |
parseInt(java.lang.String str,
int defaultValue)
This method parses an integer from the string.
|
static int |
parseInt(java.lang.String s,
int radix,
int defaultValue,
boolean onErrorUseDefault)
This performs a similar parse to int as Integer.parseInt(String, int)
where the int is the radix.
|
public static int parseInt(java.lang.String str,
int defaultValue)
strInt - defaultValue - public static int parseInt(java.lang.String s,
int radix,
int defaultValue,
boolean onErrorUseDefault)
s - radix - defaultValue - java.lang.NumberFormatException