Commit f6c90c68 by huangfusuper

批量接口查询

parent 2bd0f7d8
package com.byit.enums;
/**
* 可处理的资源类型
* @author huangfu
*/
public enum SourceType {
JAVA,
PY,
SH
;
public static boolean match(String fileName){
//转换成大写
fileName = fileName.toUpperCase();
//查询时否是匹配类型
SourceType[] values = SourceType.values();
for (SourceType value : values) {
if(fileName.endsWith(value.toString())){
return true;
}
}
return false;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment