Java tutorial
//package com.java2s; //License from project: Apache License import android.text.TextUtils; import java.util.Collection; import java.util.Map; public class Main { public static boolean isValidate(Collection<?> collection) { return null != collection && !collection.isEmpty(); } public static boolean isValidate(Map<?, ?> map) { return map != null && !map.isEmpty(); } public static boolean isValidate(String content) { return !TextUtils.isEmpty(content); } }