android sdk 自带的非空非空串判断方法

来源:互联网 发布:springboot改端口 编辑:程序博客网 时间:2024/05/16 13:47

 

http://developer.android.com/reference/android/text/TextUtils.html#isEmpty(java.lang.CharSequence)

 

android.text.TextUtils.isEmpty(CharSequence str)

 

方法说明 :

 

public static boolean isEmpty(CharSequence str)
Added in API level 1Returns true if the string is null or 0-length.Parametersstrthe string to be examinedReturnstrue if str is null or zero length 


 

 

0 0
原创粉丝点击