isEmpty (1) 썸네일형 리스트형 StringUtils.isBlank() StringUtils.isBlank StringUtils.isBlank() 를 사용하면 null 값을 효율적으로 관리할 수 있다. StringUtils 에서 기본적으로 지원하는 함수이다. import org.apache.commons.lang3.StringUtils; public static boolean isBlank(final CharSequence cs) { final int strLen = length(cs); if (strLen == 0) { return true; } for (int i = 0; i < strLen; i++) { if (!Character.isWhitespace(cs.charAt(i))) { return false; } } return true; } 아래 처럼 null / "".. 이전 1 다음