Here you can find the source of isNotEmpty(Object[] ObjectArray)
Parameter | Description |
---|
public static boolean isNotEmpty(Object[] ObjectArray)
//package com.java2s; //License from project: Apache License import java.util.List; public class Main { public static boolean isNotEmpty(List list) { boolean returnBoolean = false; if (list != null && list.size() > 0) { returnBoolean = true;/*from w w w . j a v a 2 s . c o m*/ } return returnBoolean; } public static boolean isNotEmpty(Object[] ObjectArray) { boolean returnBoolean = false; if (ObjectArray != null && ObjectArray.length > 0) { returnBoolean = true; } return returnBoolean; } public static boolean isNotEmpty(String string) { return !isEmpty(string); } public static boolean isEmpty(String string) { if (string == null || "".equals(string)) { return true; } return false; } }