public final class XmStringUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
XmStringUtil.Radix |
Modifier and Type | Method and Description |
---|---|
static boolean |
getAsBool(java.lang.String str)
Gets boolean from string represents boolean.
|
static int |
getAsCInt(java.lang.String str)
Gets integer from string represents decimal/hex number.
|
static long |
getAsCLong(java.lang.String str)
Gets long integer from string represents some radix number.
|
static long |
getAsCLong(java.lang.String str,
XmStringUtil.Radix radix)
Gets long integer from string represents some radix number.
|
static java.lang.String |
trim(java.lang.String s)
Wrapper method of String's trim method.
|
public static final java.lang.String trim(java.lang.String s)
s
- string.public static int getAsCInt(java.lang.String str)
str
- represents decimal/hex number.public static long getAsCLong(java.lang.String str)
str
- represents decimal/hex number.public static long getAsCLong(java.lang.String str, XmStringUtil.Radix radix)
str
- represents decimal/hex number.radix
- indicates a number base.public static boolean getAsBool(java.lang.String str)
str
- represents boolean.