| | |
| | | return false; |
| | | } |
| | | |
| | | public static boolean stringToBoolean(String value) { |
| | | public static boolean StringToBoolean(String value) { |
| | | if (value != null) { |
| | | value = value.toLowerCase(); |
| | | |
| | |
| | | return false; |
| | | } |
| | | |
| | | public static int stringToInt(String value, int defaultValue) { |
| | | public static int StringToInt(String value, int defaultValue) { |
| | | if (value != null) { |
| | | try { |
| | | Double doubleValue = Double.valueOf(value); |
| | |
| | | return defaultValue; |
| | | } |
| | | |
| | | public static BigDecimal stringToBigDecimal(String value, BigDecimal defaultValue) { |
| | | public static BigDecimal StringToBigDecimal(String value, BigDecimal defaultValue) { |
| | | if (value == null) { |
| | | return defaultValue; |
| | | } |