插件开发工具库,推荐依赖该工具库。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
881 B

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();
}
5 years ago
/**
* 任意对象转换为文本值
* @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);
}
}