我正在浏览一些应用程序的源代码,我遇到了这段代码,我无法理解这是什么。
public enum XStreamUserType {
MES_CONFIG_XSTREAM(MESConstants.MES_CONFIG_XSTREAM_USER, "MES_CONFIG_XSTREAM_USER", new XStream());
private int userTypeId;
private String userType;
private XStream xStream;
private XStreamUserType(int userTypeId, String userType, XStream xStream) {
this.userTypeId = userTypeId;
this.userType = userType;
this.xStream = xStream;
switch (this.userTypeId) {
case MESConstants.MES_CONFIG_XSTREAM_USER:
loadConfigReader();
break;
default:
}
}
这条线是什么意思?
MES_CONFIG_XSTREAM(MESConstants.MES_CONFIG_XSTREAM_USER, "MES_CONFIG_XSTREAM_USER", new XStream());