|
|
@ -2,8 +2,6 @@ package com.fanruan.api.util; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.general.GeneralUtils; |
|
|
|
import com.fr.stable.StableUtils; |
|
|
|
|
|
|
|
import com.fr.base.TemplateUtils; |
|
|
|
|
|
|
|
import com.fr.third.guava.base.Objects; |
|
|
|
import com.fr.third.guava.base.Objects; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
import org.jetbrains.annotations.NotNull; |
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
@ -17,15 +15,6 @@ import java.util.Map; |
|
|
|
* Created by richie on 2019-08-09 |
|
|
|
* Created by richie on 2019-08-09 |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class GeneralKit { |
|
|
|
public class GeneralKit { |
|
|
|
/** |
|
|
|
|
|
|
|
* 根据参数来计算文档字符串 |
|
|
|
|
|
|
|
* @param query 文档来源 |
|
|
|
|
|
|
|
* @param map 参数map |
|
|
|
|
|
|
|
* @return 计算后结果 |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static String renderParameter4Tpl(String query, Map map) throws Exception { |
|
|
|
|
|
|
|
return TemplateUtils.renderParameter4Tpl(query, map); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 返回多个属性合并计算的哈希值 |
|
|
|
* 返回多个属性合并计算的哈希值 |
|
|
|
* @param args 对象列表 |
|
|
|
* @param args 对象列表 |
|
|
@ -49,16 +38,6 @@ public class GeneralKit { |
|
|
|
return source!=null && source.equals(des); |
|
|
|
return source!=null && source.equals(des); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
/** |
|
|
|
|
|
|
|
* 判断指定的类是否是另一个类的子类 |
|
|
|
|
|
|
|
* @param childClass 指定的类 |
|
|
|
|
|
|
|
* @param parentClass 另一个类 |
|
|
|
|
|
|
|
* @return 如果指定类是另一个类的子类则返回true,否则返回false |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
public static boolean classInstanceOf(Class childClass, Class parentClass) { |
|
|
|
|
|
|
|
return StableUtils.classInstanceOf(childClass, parentClass); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* 返回系统的首选MAC地址 |
|
|
|
* 返回系统的首选MAC地址 |
|
|
|
* |
|
|
|
* |
|
|
|