Here you can find the source of isEmpty(Collection> o)
public static boolean isEmpty(Collection<?> o)
//package com.java2s; import java.util.Collection; import java.util.Map; public class Main { public static boolean isEmpty(Object object) { return (object == null); }/*from ww w.j a va2s. c o m*/ public static boolean isEmpty(Object[] objects) { return (objects == null || objects.length == 0); } public static boolean isEmpty(String s) { return (s == null || "".equals(s.trim())); } public static boolean isEmpty(Collection<?> o) { return (o == null || o.isEmpty()); } public static boolean isEmpty(Map<?, ?> o) { return (o == null || o.isEmpty()); } public static String trim(String value) { if (value == null) return null; return value.trim(); } }