io.github.biezhi.wechat.utils.StringUtils Maven / Gradle / Ivy
package io.github.biezhi.wechat.utils;
import java.util.Random;
/**
* 字符串工具类
*
* @author biezhi
* @date 2018/1/19
*/
public class StringUtils {
public static boolean isEmpty(String value) {
return null == value || value.isEmpty();
}
public static boolean isNotEmpty(String value) {
return null != value && !value.isEmpty();
}
public static String random(int count) {
RandomString gen = new RandomString(count, new Random());
return gen.nextString();
}
}