ÎļþÃû´Ó se-system/src/main/java/com/terra/system/helper/StringHelper.java ÐÞ¸Ä |
| | |
| | | package com.terra.system.helper; |
| | | package com.terra.common.helper; |
| | | |
| | | import com.terra.common.entity.all.StaticData; |
| | | |
| | |
| | | * åç¬¦ä¸²ï¼æ¯å¦ä¸ºnull æ "" |
| | | */ |
| | | public static boolean isNull(String str) { |
| | | return null == str || str.length() == 0; |
| | | return null == str || str.isEmpty(); |
| | | } |
| | | |
| | | /** |
| | | * å符串,æ¯å¦ä¸ºç©ºnullåç©ºæ ¼ |
| | | */ |
| | | public static boolean isEmpty(String str) { |
| | | return null == str || "".equals(str.trim()); |
| | | return null == str || str.trim().isEmpty(); |
| | | } |
| | | |
| | | /** |