com.shedhack.exception.core.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of exception-core Show documentation
Show all versions of exception-core Show documentation
Generic Exception Library to be used with HTTP services.
package com.shedhack.exception.core;
import java.util.Collection;
import java.util.Map;
/**
* @author imamchishty
*
* Created simple string utils, could use external libraries
* but I don't want to enforce any tran-dependencies.
*/
public class Utils {
public static boolean isEmptyOrNull(String value) {
return value == null || value.length() == 0;
}
public static boolean isCollectionNullOrEmpty(Collection collection) {
return collection == null || collection.isEmpty();
}
public static boolean isMapNullOrEmpty(Map map) {
return map == null || map.isEmpty();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy