删除 src/main/java/com/bonus/autoweb/UI/frame/StringHelper.java
This commit is contained in:
parent
54bf53f0db
commit
3f303373bb
|
|
@ -1,30 +0,0 @@
|
||||||
package com.bonus.autoweb.UI.frame;
|
|
||||||
|
|
||||||
public class StringHelper {
|
|
||||||
public static boolean isEmpty(String str) {
|
|
||||||
if (str == null || str.trim().equals("") || str.trim().equals("null")) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
/**
|
|
||||||
* 判断字符串 不为空
|
|
||||||
*/
|
|
||||||
public static boolean isNotEmpty(String str) {
|
|
||||||
return !isEmpty(str);
|
|
||||||
}
|
|
||||||
|
|
||||||
public static boolean isEmptyAndNull(String str) {
|
|
||||||
if (str == null || "".equals(str.trim()) || "null".equals(str.trim())) {
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
public static String fillPrefixZero(int v, int len) {
|
|
||||||
String vStr = v + "";
|
|
||||||
while (vStr.length() < len) {
|
|
||||||
vStr = "0" + vStr;
|
|
||||||
}
|
|
||||||
return vStr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue