com.github.hoantran.lib.utility.validation.CollectionValidation Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utility-library Show documentation
Show all versions of utility-library Show documentation
Utility library for JAVA application
/**
* Created by Hoan Tran @ http://hoantran-it.blogspot.com
*
* Any modifications to this file must keep this entire header intact.
*
*/
package com.github.hoantran.lib.utility.validation;
import java.util.Collection;
/**
* @author hoan.tran
*/
public class CollectionValidation {
public static boolean isEmpty(Collection> collection) {
return (collection == null || collection.isEmpty());
}
public static boolean isNotEmpty(Collection> collection) {
return !isEmpty(collection);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy