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.
17 lines
455 B
17 lines
455 B
6 years ago
|
package com.fanruan.api.util;
|
||
|
|
||
|
import com.fr.stable.StableUtils;
|
||
|
|
||
|
public class ReflectKit {
|
||
|
|
||
|
/**
|
||
|
* 判断一个类是否是另一个类的子类
|
||
|
* @param current 当前类
|
||
|
* @param target 目标类
|
||
|
* @return 如果当前类是目标类的子类,则返回true,否则返回false
|
||
|
*/
|
||
|
public static boolean classInstanceOf(Class current, Class target) {
|
||
|
return StableUtils.classInstanceOf(current, target);
|
||
|
}
|
||
|
}
|