package com.gkhy.safePlatform.safeCheck.enums;
|
|
public enum ReferenceValueTypeEnum {
|
REFERENCE_VALUE_TYPE_GT((byte)1,">"),
|
REFERENCE_VALUE_TYPE_GE((byte)2,">="),
|
REFERENCE_VALUE_TYPE_LT((byte)3,"<"),
|
REFERENCE_VALUE_TYPE_LE((byte)4,"<=")
|
;
|
|
Byte code;
|
|
String value;
|
|
ReferenceValueTypeEnum(Byte code, String value) {
|
this.code = code;
|
this.value = value;
|
}
|
|
public Byte getCode() {
|
return code;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setCode(Byte code) {
|
this.code = code;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
public static String getValue(Byte code){
|
for (ReferenceValueTypeEnum referenceValueTypeEnum : ReferenceValueTypeEnum.values()) {
|
if(referenceValueTypeEnum.getCode()==code){
|
return referenceValueTypeEnum.getValue();
|
}
|
}
|
return "";
|
}
|
}
|