Java tutorial
//package com.java2s; //License from project: Apache License import java.util.Collection; import java.util.List; import java.util.Map; import java.util.Set; public class Main { public static boolean isBlank(Collection coll) { return (coll == null || coll.isEmpty()); } public static boolean isBlank(List list) { return (list == null || list.isEmpty()); } public static boolean isBlank(Set set) { return (set == null || set.isEmpty()); } public static boolean isBlank(Map map) { return (map == null || map.isEmpty()); } }