IpRuleConcatEnum.java
722 Bytes
package com.ui.common;
import java.util.ArrayList;
import java.util.List;
/**
* Created by meiling.ge on 2017/8/21.
* 恶意ip规则管理 -----规则项连接符
*/
public enum IpRuleConcatEnum {
AND("&&","与"),
OR("||","或");
private String concat;//规则连接符
private String desc;//描述
IpRuleConcatEnum(String concat,String desc ){
this.concat = concat;
this.desc = desc;
}
public static List<String> getAll(){
IpRuleConcatEnum[] values = IpRuleConcatEnum.values();
List<String> list = new ArrayList<>(values.length);
for(IpRuleConcatEnum val : values){
list.add(val.concat);
}
return list;
}
}