标签:lse value tco ace taobao ini inter source equals
public interface PrealertConstants {
enum platformCodeEnum{
CAINIAO(1),
CLOSED(-5),
OFFLINE(2);
private int code;
private platformCodeEnum(Integer code)
{
this.code=code;
}
public int getCode(){
return code;
}
}
}
===========
调用:
if(PrealertConstants.platformCode_TaoBao.toString().equals(source))
{
platCode=platformCodeEnum.CAINIAO;
}
else
{
platcode=PrealertConstants.platformCodeEnum.valueof(source);
}
标签:lse value tco ace taobao ini inter source equals
原文地址:https://www.cnblogs.com/chengjun/p/9052507.html