常用辅助类

StringHelper.java

    public static boolean isEmpty(Object[] array) {
        return array == null || array.length == 0;
    }

    public static boolean isEmpty(Collection<?> c) {
        return c == null || c.isEmpty();
    }

    public static boolean isEmpty(Map<?, ?> map) {
        return map == null || map.isEmpty();
    }

 

posted @ 2018-06-12 14:22  csuwangwei  Views(128)  Comments(0Edit  收藏  举报