forked from fanruan/finekit
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.
38 lines
883 B
38 lines
883 B
package com.fanruan.api.util; |
|
|
|
import java.io.IOException; |
|
|
|
/** |
|
* @author richie |
|
* @version 10.0 |
|
* Created by richie on 2019-08-09 |
|
*/ |
|
public class GeneralUtils { |
|
|
|
/** |
|
* 返回系统的首选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); |
|
} |
|
}
|
|
|