Java Array Empty Check isNotEmpty(Object[] arrs)

Here you can find the source of isNotEmpty(Object[] arrs)

Description

is Not Empty

License

Open Source License

Declaration

public static boolean isNotEmpty(Object[] arrs) 

Method Source Code


//package com.java2s;
import java.util.Collection;
import java.util.Map;

public class Main {

    public static boolean isNotEmpty(String str) {
        return !isEmpty(str);
    }// w  w w .  j av  a 2 s  .co m

    public static boolean isNotEmpty(Object[] arrs) {
        return !isEmpty(arrs);
    }

    public static boolean isNotEmpty(Collection colls) {
        return !isEmpty(colls);
    }

    public static boolean isNotEmpty(Map map) {
        return !isEmpty(map);
    }

    public static boolean isEmpty(String str) {
        return str == null || str.length() < 1;
    }

    public static boolean isEmpty(Object[] arrs) {
        return arrs == null || arrs.length < 1;
    }

    public static boolean isEmpty(Collection colls) {
        return colls == null || colls.isEmpty();
    }

    public static boolean isEmpty(Map map) {
        return map == null || map.isEmpty();
    }
}

Related

  1. isNotEmpty(boolean[] values)
  2. isNotEmpty(Object[] array)
  3. isNotEmpty(Object[] array)
  4. isNotEmpty(Object[] array)
  5. isNotEmpty(Object[] array)
  6. isNotEmpty(Object[] ObjectArray)
  7. isNotEmpty(T[] array)
  8. isNotEmpty(T[] array)
  9. isNotEmpty(T[] array)