EventCateEnum.java 879 Bytes
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;
    }
}