Here are the examples of the java api com.blade.kit.StringKit.isEmpty() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
2 Examples
19
Source : Utils.java
with MIT License
from biezhi
with MIT License
from biezhi
public static Integer parseInt(String value, int defaultValue) {
try {
if (StringKit.isEmpty(value)) {
return defaultValue;
}
return Integer.valueOf(value);
} catch (Exception e) {
return defaultValue;
}
}
19
Source : Utils.java
with MIT License
from biezhi
with MIT License
from biezhi
public static Double parseDouble(String value, double defaultValue) {
try {
if (StringKit.isEmpty(value)) {
return defaultValue;
}
return Double.valueOf(value);
} catch (Exception e) {
return defaultValue;
}
}