Here you can find the source of isNotNull(Collection> collection)
public static boolean isNotNull(Collection<?> collection)
//package com.java2s; import java.util.Collection; public class Main { public static boolean isNotNull(Collection<?> collection) { if (collection != null && collection.size() > 0) { return true; }//from www .jav a2s. c o m return false; } }