package com.lyt.base.util;
import java.util.Collection;
public class NullUtil {
public static boolean isEmpty(Object objs) {
return (objs == null);
}
public static boolean isEmpty(Object[] objs) {
return ((objs == null) || (objs.length == 0));
}
public static boolean isEmpty(Collection<?> objs) {
return ((objs == null) || (objs.size() <= 0));
}
public static boolean isEmpty(byte[] objs) {
return ((objs == null) || (objs.length == 0));
}
public static boolean isEmpty(String str) {
return ((str == null) || (str.trim().length() == 0));
}
public static boolean isEmpty(Long l) {
return ((l == null) || (l.longValue() == 0L));
}
}
import java.util.Collection;
public class NullUtil {
public static boolean isEmpty(Object objs) {
return (objs == null);
}
public static boolean isEmpty(Object[] objs) {
return ((objs == null) || (objs.length == 0));
}
public static boolean isEmpty(Collection<?> objs) {
return ((objs == null) || (objs.size() <= 0));
}
public static boolean isEmpty(byte[] objs) {
return ((objs == null) || (objs.length == 0));
}
public static boolean isEmpty(String str) {
return ((str == null) || (str.trim().length() == 0));
}
public static boolean isEmpty(Long l) {
return ((l == null) || (l.longValue() == 0L));
}
}