1、String的非空判断。

  StringUtils.isNotEmpty(String str);

2、Integer的非空判断。

  null != Integer ;

3、list的大小判断。

  list.size() == 0

4、对象的非空判断

  null != object

相关文章: