EventCateEnum.java
879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package com.viontech.enums;
/**
* Created by Administrator
* 事件大类型枚举
*/
public enum EventCateEnum {
TRAFFIC("traffic"){
@Override
public String apply(){
return getType();
}
},BEHAVIOR("behavior"){
@Override
public String apply(){
return getType();
}
},FACE("face"){
@Override
public String apply(){
return getType();
}
},FLOW("flow"){
@Override
public String apply(){
return getType();
}
};
private String type;
EventCateEnum(String type) {
this.type = type;
}
public abstract String apply();
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
}