Here you can find the source of isNull(Collection> coll)
public static boolean isNull(Collection<?> coll)
//package com.java2s; import java.util.Collection; public class Main { public static boolean isNull(Collection<?> coll) { if (coll == null) { return true; }// w w w .j av a 2 s . c o m if (coll.size() == 0) { return true; } return false; } }