isNotEmpty 추가

This commit is contained in:
KNKIM 2021-07-21 17:57:05 +09:00
parent 844fa12cb7
commit 6c64f0b3a9

View File

@ -40,6 +40,16 @@ public class StringUtil extends EgovStringUtil {
return str == null || str.trim().length() == 0; return str == null || str.trim().length() == 0;
} }
/**
* Null이 아니고 빈문자열(공백 포함) 아닌 일반 문자가 존재하는 , true를 리턴한다.
*
* @param str
* @return
*/
public static boolean isNotEmpty(String str) {
return !isEmpty(str);
}
/** /**
* 문자열을 정수형으로 변환하여 리턴한다. 만일 문자열이 null 또는 문자열인 경우, -1을 리턴한다. * 문자열을 정수형으로 변환하여 리턴한다. 만일 문자열이 null 또는 문자열인 경우, -1을 리턴한다.
* *