All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.spuchmann.xml.splitter.utils.CommonUtils Maven / Gradle / Ivy

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 map) {
        return map != null ? !map.isEmpty() : false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy