Java tutorial
//package com.java2s; import java.util.*; public class Main { /** * Check if collection contains element. * @return true: null == collection || 0 == collection.size() * @return false: null != collection && 0 != collection.size() */ public static boolean isBlank(Collection<? extends Object> collection) { if (null == collection || 0 == collection.size()) { return true; } return false; } }