新增磁盘SMART检测汇报功能

This commit is contained in:
2022-05-03 19:30:44 +08:00
parent fe10c4b686
commit 4bcf56207d
4 changed files with 54 additions and 8 deletions

View File

@@ -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);
}
}
}