1.String 字符串
if (name == null || "".equals(name.trim())) {
throw new IllegalArgumentException("name=" + name);
}
2.集合
if (list != null && !list.isEmpty()) {
// list 存在且有元素
code...
}