KKSU
2025-02-07 05762546ed54a38ab4559b9c32374f16c5d61dd0
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;
    }
}