com.github.spuchmann.xml.splitter.utils.CommonUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xml-splitter Show documentation
Show all versions of xml-splitter Show documentation
A simple java library which makes it easy to split xml files into fragments.
The newest version!
package com.github.spuchmann.xml.splitter.utils;
import java.util.List;
import java.util.Map;
/**
* simple util class which covers common functionality.
*
* @since 0.2.0
*/
public final class CommonUtils {
private CommonUtils() {
//hidden constructor
}
public static boolean isNotNullOrEmpty(String value) {
return value != null ? !value.isEmpty() : false;
}
public static boolean isNotNullOrEmpty(List> list) {
return list != null ? !list.isEmpty() : false;
}
public static boolean isNotNullOrEmpty(Map, String> map) {
return map != null ? !map.isEmpty() : false;
}
}