slib.utils.impl
Class Util
java.lang.Object
slib.utils.impl.Util
public class Util
- extends Object
- Author:
- seb
Constructor Summary |
Util()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Util
public Util()
error
public static void error(String message)
throws SLIB_Ex_Critic
- Only throw a critical exception passing the given message
- Parameters:
message
- the message used
- Throws:
SLIB_Ex_Critic
stringToBoolean
public static boolean stringToBoolean(String value)
- Convert the given
String
to a boolean value
return true if the given string equals to "true" or "yes".
Ignore Case + trim the string.
- Parameters:
value
- the string to evaluate
- Returns:
- a boolean value according to the defined conditions.
stringToInteger
public static Integer stringToInteger(String val)
throws SLIB_Ex_Critic
- Parameters:
val
-
- Returns:
-
- Throws:
SLIB_Ex_Critic
stringToDouble
public static Double stringToDouble(String val)
throws SLIB_Ex_Critic
- Parameters:
val
-
- Returns:
-
- Throws:
SLIB_Ex_Critic
stringToLong
public static Long stringToLong(String val)
throws SLIB_Ex_Critic
- Parameters:
val
-
- Returns:
-
- Throws:
SLIB_Ex_Critic
Copyright © 2013. All Rights Reserved.