Here you can find the source of isNonEmpty(final Collection values)
public static boolean isNonEmpty(final Collection values)
//package com.java2s; //License from project: Apache License import java.util.Collection; import java.util.Map; public class Main { public static boolean isNonEmpty(final String value) { return !isEmpty(value); }// w ww .ja va 2 s .com public static boolean isNonEmpty(final Collection values) { return !isEmpty(values); } public static boolean isNonEmpty(final Map values) { return !isEmpty(values); } public static boolean isEmpty(final String value) { if (value == null) { return true; } else { return value.trim().isEmpty(); } } public static boolean isEmpty(final Collection values) { return (values == null) || values.isEmpty(); } public static boolean isEmpty(final Map values) { return (values == null) || values.isEmpty(); } }