List of utility methods to do Array Empty Check
boolean | isNotEmpty(int[] array) Checks if an array of primitive ints is not empty or not return (array != null && array.length != 0);
|
boolean | isNotEmpty(long[] array) Checks if an array of primitive longs is not empty or not return (array != null && array.length != 0);
|
boolean | isNotEmpty(short[] array) Checks if an array of primitive shorts is not empty or not return (array != null && array.length != 0);
|
String | findNonEmptyElement(String... strings) find Non Empty Element for (String string : strings) { if (!TextUtils.isEmpty(string)) { return string; return ""; |
boolean | isEmptyArray(Object[] obj) is Empty Array return isEmptyArray(obj, 1);
|
boolean | isEmptyArray(Object[] array, int paramInt) is Empty Array if ((array == null) || (array.length < paramInt)) { return true; return false; |
boolean | isByteArrayEmpty(byte[] bytes) is Byte Array Empty for (int i = 0; i < bytes.length; i++) { if (bytes[i] != 0x00) { return false; return true; |