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

com.github.xiaoyuge5201.prop.CommonUtil Maven / Gradle / Ivy

There is a newer version: 1.3.5
Show newest version
package com.github.xiaoyuge5201.prop;

/**
 * Copyright 2016 Sari. All Rights Reserved
 * @author husl
 * @date 2016年3月3日 下午1:46:52 
 * @version V1.0
 */
public class CommonUtil {
	
    /**
     * 参数验证
     *
     * @param args 参数
     * @return true or false
     */
    public static boolean validParam(Object... args) {
        for (Object arg : args) {
            if (null == arg) {
                return false;
            } else {
                if (arg.getClass().equals(String.class)) {
                    if ("".equals(arg)) {
                        return false;
                    }
                }
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy