Here you can find the source of IsNotEmptyOrNull(Collection> elements)
public static boolean IsNotEmptyOrNull(Collection<?> elements)
//package com.java2s; //License from project: Apache License import java.util.Collection; public class Main { public static boolean IsNotEmptyOrNull(Collection<?> elements) { return !collectionIsEmptyOrNull(elements); }//from w ww . j a va2s . com public static boolean collectionIsEmptyOrNull(Collection<?> elements) { if (elements == null || elements.isEmpty()) { return true; } return false; } }