public static boolean isNullOrEmpty(final String str) {
        return str == null || str.length() == 0;
    }
Returns {@code true} if the given string is null or is the empty string.
jraft-rheakv/rheakv-core/src/main/java/com/alipay/sofa/jraft/rhea/util/Strings.java