public class SConfigParser
extends java.lang.Object
Constructor and Description |
---|
SConfigParser() |
Modifier and Type | Method and Description |
---|---|
static boolean |
getBoolValue(java.lang.Object argval)
Parses a boolean value.
|
static boolean |
getBoolValue(java.lang.Object argval,
boolean defaultval)
Parses an boolean value.
|
static int |
getIntValue(java.lang.Object argval)
Parses an integer value.
|
static int |
getIntValue(java.lang.Object argval,
int defaultval)
Parses an integer value.
|
static long |
getLongValue(java.lang.Object argval)
Parses an long value.
|
static long |
getLongValue(java.lang.Object argval,
long defaultval)
Parses an long value.
|
public static final boolean getBoolValue(java.lang.Object argval)
argval
- Argument value.public static final boolean getBoolValue(java.lang.Object argval, boolean defaultval)
argval
- Argument value.defaultval
- Default value if unparsable.public static final int getIntValue(java.lang.Object argval)
argval
- Argument value.public static final int getIntValue(java.lang.Object argval, int defaultval)
argval
- Argument value.defaultval
- Default value if unparsable.public static final long getLongValue(java.lang.Object argval)
argval
- Argument value.public static final long getLongValue(java.lang.Object argval, long defaultval)
argval
- Argument value.defaultval
- Default value if unparsable.