Users Pricing

forum

Home Forums Can anybody say my below code is a variable, function or something else – MindStick

Can anybody say my below code is a variable, function or something else

Madam Walker 2274 14 Oct 2013

I was going through some application's source code and I came across this piece of code and I am not able to understand what this is.

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:
    }
}


What does this line mean?

MES_CONFIG_XSTREAM(MESConstants.MES_CONFIG_XSTREAM_USER, "MES_CONFIG_XSTREAM_USER",    new XStream());

1 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md