All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dahuatech.icc.assesscontrol.enums.EnterOrExitEnums Maven / Gradle / Ivy

The newest version!
package com.dahuatech.icc.assesscontrol.enums;

import java.util.ArrayList;
import java.util.List;

public enum EnterOrExitEnums {

    IN("1","进门"),
    OUT("2","出门"),
    IN_AND_OUT("3","进/出"),
    ;
    public String code;
    public String msg;

    EnterOrExitEnums(String code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public static List getTypeList(){
        List list = new ArrayList<>();
        for(EnterOrExitEnums item : EnterOrExitEnums.values()){
            list.add(item.code);
        }
        return list;
    }

    public static boolean isRight(String type){
        if(type == null){
            return false;
        }
        for(EnterOrExitEnums item : EnterOrExitEnums.values()){
            if(type.equals(item.code)){
                return true;
            }
        }
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy