6非空判断

string:    userNumber != null && !"".equals(userNumber.trim())

map:  map==null

Integer:

=========

1、String的非空判断。

StringUtils.isNotEmpty(String str);

2、Integer的非空判断。

null != Integer ;

3、list的大小判断。

list.size() == 0

4、对象的非空判断

null != object

猜你喜欢

转载自blog.csdn.net/xiaoxiaoniaoQ/article/details/83149795