Android Array Empty Check isEmpty(V[] sourceArray)

Here you can find the source of isEmpty(V[] sourceArray)

Description

is null or its length is 0

Parameter

Parameter Description
V < >
sourceArray a parameter

Declaration

public static <V> boolean isEmpty(V[] sourceArray) 

Method Source Code

//package com.java2s;

public class Main {
    /**/*www  .  j av a  2 s  .  c  o  m*/
     * is null or its length is 0
     * 
     * @param <V>
     * @param sourceArray
     * @return
     */
    public static <V> boolean isEmpty(V[] sourceArray) {
        return (sourceArray == null || sourceArray.length == 0);
    }
}

Related

  1. ckNonEmpty(String... argvs)
  2. isAnyStringEmpty(String[] array)
  3. isEmpty(Object[] array)
  4. isEmpty(T[] array)
  5. isEmpty(boolean[] array)
  6. isEmpty(byte[] array)
  7. isEmpty(char[] array)
  8. isEmpty(double[] array)