org.knowm.xchange.exx.utils.RestCommonUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xchange-exx Show documentation
Show all versions of xchange-exx Show documentation
Development fork. Not for general use.
package org.knowm.xchange.exx.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);
}
}