
org.knowm.xchange.coinsuper.utils.RestCommonUtil Maven / Gradle / Ivy
package org.knowm.xchange.coinsuper.utils;
/**
* 常用工具类
*
* @author Lynn Li
*/
public class RestCommonUtil {
/** 工具类,封闭构造器 */
private RestCommonUtil() {}
/**
* 返回字符串是否为空
*
* @param str
* @return
*/
public static boolean isEmpty(String str) {
return str == null || "".equals(str) || "".equals(str.trim());
}
/**
* 返回字符串是否非空
*
* @param str
* @return
*/
public static boolean isNotEmpty(String str) {
return !isEmpty(str);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy