![JAR search and dependency download from the Maven repository](/logo.png)
com.xiaomi.xmpush.server.XMStringUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nutz-mipush-sdk Show documentation
Show all versions of nutz-mipush-sdk Show documentation
小米官方SDK的反编译后的源码,稍微改一下,用log4j输出日志
The newest version!
package com.xiaomi.xmpush.server;
public class XMStringUtils {
public static boolean isEmpty(CharSequence cs) {
return (cs == null) || (cs.length() == 0);
}
public static boolean isBlank(CharSequence cs) {
int strLen;
if ((cs == null) || ((strLen = cs.length()) == 0))
return true;
for (int i = 0; i < strLen; i++) {
if (!Character.isWhitespace(cs.charAt(i))) {
return false;
}
}
return true;
}
public static String trim(String str) {
return str == null ? null : str.trim();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy