Android Array Empty Check isNotEmpty(T[] array)

Here you can find the source of isNotEmpty(T[] array)

Description

Checks whether the provided array is empty (i.e is not null and has non-empty length).

Declaration

public static <T> boolean isNotEmpty(T[] array) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*from   w  ww . java  2s. c om*/
     * Checks whether the provided {@code array} is empty (i.e is not null and has non-empty length).
     */
    public static <T> boolean isNotEmpty(T[] array) {
        return (array != null && array.length > 0);
    }
}

Related

  1. isEmpty(float[] array)
  2. isEmpty(int[] array)
  3. isEmpty(long[] array)
  4. isEmpty(short[] array)
  5. isNotEmpty(T[] array)
  6. isNotEmpty(boolean[] array)
  7. isNotEmpty(byte[] array)
  8. isNotEmpty(char[] array)
  9. isNotEmpty(double[] array)