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

com.centit.support.algorithm.GeneralAlgorithm Maven / Gradle / Ivy

There is a newer version: 5.3.2302
Show newest version
package com.centit.support.algorithm;

/**
 * Created by codefan on 17-9-7.
 */
@SuppressWarnings("unused")
public abstract  class GeneralAlgorithm {

    private GeneralAlgorithm() {
        throw new IllegalAccessError("Utility class");
    }

    public static  T nvl(T obj, T obj2){
        return obj==null ? obj2 : obj;
    }

    public static  T nvl2(Object obj, T obj2, T obj3){
        return obj==null ? obj3 : obj2;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy