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

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

There is a newer version: 1.0.13.10
Show newest version
package com.dahuatech.icc.assesscontrol.enums;

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

public enum CardCategoryEnums {

    IC("1","IC卡"),
    RFID("2","有源RFID"),
    CPU("3","CPU卡"),
    ;
    public String code;
    public String msg;

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy