Java Object NVL isEmpty(Object... obj)

Here you can find the source of isEmpty(Object... obj)

Description

is Empty

License

LGPL

Declaration

public static boolean isEmpty(Object... obj) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.*;

public class Main {

    public static boolean isEmpty(String string) {
        return string == null || string.length() == 0 ? true : false;
    }/* ww  w  .j a  v a  2s.com*/

    public static boolean isEmpty(List<?> list) {
        return list == null || list.size() == 0 ? true : false;
    }

    public static boolean isEmpty(Object... obj) {
        return obj == null || obj.length == 0 ? true : false;
    }
}

Related

  1. isEmpty(Object obj)
  2. isEmpty(Object value)
  3. isNotEmpty(Object object)
  4. isNullOrEmpty(final Object obj)
  5. isNullOrEmpty(Object object, boolean zeroEqualsEmpty)
  6. isNullOrEmptyOrZero(Object object)