package com.fanruan.api.util; import java.io.IOException; /** * @author richie * @version 10.0 * Created by richie on 2019-08-09 */ public class GeneralKit { /** * 返回系统的首选MAC地址 * * @return 表示系统MAC地址的字符串 */ public static String getMacAddress() throws IOException { return com.fr.general.GeneralUtils.getMacAddress(); } /** * 任意对象转换为文本值 * @param obj 待转换的对象 * @return 文本值 */ public static String objectToString(Object obj) { return com.fr.general.GeneralUtils.objectToString(obj); } /** * 任意对象转换为数值 * @param obj 待转换的对象 * @return 数值 */ public static Number objectToNumber(Object obj) { return com.fr.general.GeneralUtils.objectToNumber(obj); } }