Here you can find the source of isNullOrEmpty(Collection> values)
public static boolean isNullOrEmpty(Collection<?> values)
//package com.java2s; //License from project: Open Source License import java.util.Collection; public class Main { public static boolean isNullOrEmpty(String val) { return val == null || val.trim().length() == 0; }// w w w .j a v a 2 s . c o m public static boolean isNullOrEmpty(Collection<?> values) { if (values == null || values.isEmpty()) { return true; } return false; } }