新增磁盘SMART检测汇报功能
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
package com.yutou.nas.utils;
|
||||
|
||||
public class StringUtils {
|
||||
public static boolean isEmpty(String str){
|
||||
public static boolean isEmpty(String str) {
|
||||
return str == null || str.trim().length() == 0;
|
||||
}
|
||||
|
||||
public static String toLowerCaseFirstOne(String s) {
|
||||
if (Character.isLowerCase(s.charAt(0))) {
|
||||
return s;
|
||||
} else {
|
||||
return Character.toLowerCase(s.charAt(0)) + s.substring(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user