Skip to content

Commit

Permalink
升级字符串判空的工具方法,可以一次判断多个字符串
Browse files Browse the repository at this point in the history
  • Loading branch information
kymjs committed Jul 23, 2015
1 parent ac7a2b1 commit 9f42372
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion KJFrame/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.kymjs.kjframe"
android:versionCode="223"
android:versionName="2.237" >
android:versionName="2.238" >

<uses-sdk
android:minSdkVersion="11"
Expand Down
2 changes: 1 addition & 1 deletion KJFrame/src/org/kymjs/kjframe/utils/KJConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
public final class KJConfig {

public static final double VERSION = 2.237;
public static final double VERSION = 2.238;

/** 错误处理广播 */
public static final String RECEIVER_ERROR = KJConfig.class.getName()
Expand Down
12 changes: 12 additions & 0 deletions KJFrame/src/org/kymjs/kjframe/utils/StringUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ public static boolean isEmpty(CharSequence input) {
return true;
}

/**
* 判断给定字符串是否空白串 空白串是指由空格、制表符、回车符、换行符组成的字符串 若输入字符串为null或空字符串,返回true
*/
public static boolean isEmpty(CharSequence... strs) {
for (CharSequence str : strs) {
if (isEmpty(str)) {
return true;
}
}
return false;
}

/**
* 判断是不是一个合法的电子邮件地址
*/
Expand Down
Binary file not shown.

0 comments on commit 9f42372

Please sign in to comment.