All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.Util.InstallModes Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Util;

/**
 * .net and java edition installed modes
 */
public enum InstallModes {
    None(-1),
    Server(5),
    Developer(12),
    Client(14);

    private static java.util.HashMap mappings;
    private int intValue;

    private InstallModes(int value) {
        intValue = value;
        InstallModes.getMappings().put(value, this);
    }

    private static java.util.HashMap getMappings() {
        if (mappings == null) {
            synchronized (InstallModes.class) {
                if (mappings == null) {
                    mappings = new java.util.HashMap();
                }
            }
        }
        return mappings;
    }

    public static InstallModes forValue(int value) {
        return getMappings().get(value);
    }

    public int getValue() {
        return intValue;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy