| | |
| | | return null == str || str.trim().length() == 0 || "undefined".equals(str); |
| | | } |
| | | |
| | | /**判断空*/ |
| | | public static boolean isNull(String str) { |
| | | return null == str || str.trim().length() == 0 || "undefined".equals(str); |
| | | } |
| | | |
| | | /**判断非空*/ |
| | | public static boolean noNull(String str) { |
| | | return null != str && str.trim().length() != 0 && !"undefined".equals(str); |
| | | } |
| | | |
| | | /** |
| | | * 判断字符内容中是否存在一个为空的字符�? |
| | | * <p> |
| | |
| | | return oriStr; |
| | | } |
| | | |
| | | /** |
| | | * 去除空格 |
| | | * @param info 信息 |
| | | * @return 返回 |
| | | */ |
| | | public static String trimBlank(String info){ |
| | | if (null != info){ |
| | | return info.trim(); |
| | | } |
| | | return null; |
| | | } |
| | | } |