Here you can find the source of safeIsEmpty(Collection collection)
public static boolean safeIsEmpty(Collection collection)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { public static boolean safeIsEmpty(Collection collection) { return collection == null || collection.isEmpty(); }//w w w.j a v a 2s .co m public static boolean safeIsEmpty(Map<?, ?> map) { return map == null || map.isEmpty(); } }