Here you can find the source of isNotEmpty(List
Parameter | Description |
---|---|
objList | a parameter |
public static <T> boolean isNotEmpty(List<T> objList)
//package com.java2s; /*/*from w w w.ja v a2s .c o m*/ * Copyright (c) 2012 CitrusPay. All Rights Reserved. * * This software is the proprietary information of CitrusPay. * Use is subject to license terms. */ import java.util.List; public class Main { /** * This function checks if the list of the objects is empty or not * @param objList * @return */ public static <T> boolean isNotEmpty(List<T> objList) { return (isNotNull(objList) && (objList.size() > 0)); } /** * This function checks if object is not null * @param object * @return */ public static boolean isNotNull(Object object) { return (object != null) ? Boolean.TRUE : Boolean.FALSE; } }