cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package cn.ksource.core.util;
 
public class DefaultUtil {
 
    public static String defaultIfNull(Object obj,String str){
        if (obj == null) return str;
        else return obj.toString();
    }
    
    public static Object defautIfTrue(boolean conditions,Object trueValue,Object falseValue){
        if (conditions) {
            return trueValue;
        } else {
            return falseValue;
        }
    }
    
    
}