Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liyuan
byit-myth-job
Commits
f6c90c68
Commit
f6c90c68
authored
Jul 09, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量接口查询
parent
2bd0f7d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
SourceType.java
...cutor-server/src/main/java/com/byit/enums/SourceType.java
+25
-0
No files found.
byit-myth-executor/myth-executor-server/src/main/java/com/byit/enums/SourceType.java
0 → 100644
View file @
f6c90c68
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
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment