public class Util extends Object
| Constructor and Description |
|---|
Util() |
| Modifier and Type | Method and Description |
|---|---|
static void |
error(String message)
Only throw a critical exception passing the given message
|
static boolean |
stringToBoolean(String value)
Convert the given
String to a boolean value. |
static Double |
stringToDouble(String val) |
static Integer |
stringToInteger(String val) |
static Long |
stringToLong(String val) |
public static void error(String message) throws SLIB_Ex_Critic
message - the message usedSLIB_Ex_Criticpublic static boolean stringToBoolean(String value)
String to a boolean value. return true if the
given string equals null, "true" or "yes". Ignore Case + trim the string.value - the string to evaluatepublic static Integer stringToInteger(String val) throws SLIB_Ex_Critic
val - SLIB_Ex_Criticpublic static Double stringToDouble(String val) throws SLIB_Ex_Critic
val - SLIB_Ex_Criticpublic static Long stringToLong(String val) throws SLIB_Ex_Critic
val - SLIB_Ex_CriticCopyright © 2014. All rights reserved.