All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.biezhi.wechat.utils.StringUtils Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
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();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy