KKSU
2025-03-14 7338052ad16f1f2f5dc338f6c20643ebbc836f00
1
2
3
4
5
6
7
8
9
10
11
12
package com.best.javaSdk.converter;
 
public class ConverterUtil {
    public static Object convert(Class<?> type, String value){
        if(type.isAssignableFrom(int.class)){
            return Integer.parseInt(value);
        }else if(type.isAssignableFrom(double.class)){
            return Double.valueOf(value);
        }
        return value;
    }
}