Android Array Empty Check isByteArrayEmpty(byte[] bytes)

Here you can find the source of isByteArrayEmpty(byte[] bytes)

Description

is Byte Array Empty

License

Open Source License

Declaration

public static boolean isByteArrayEmpty(byte[] bytes) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean isByteArrayEmpty(byte[] bytes) {
        for (int i = 0; i < bytes.length; i++) {
            if (bytes[i] != 0x00) {
                return false;
            }//from w  ww.j  av a 2s .c  om
        }

        return true;
    }
}

Related

  1. isNotEmpty(long[] array)
  2. isNotEmpty(short[] array)
  3. findNonEmptyElement(String... strings)
  4. isEmptyArray(Object[] obj)
  5. isEmptyArray(Object[] array, int paramInt)