Alachisoft.NCache.Common.Enum.BridgeReplicatorRole Maven / Gradle / Ivy
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Alachisoft.NCache.Common.Enum;
//C# TO JAVA CONVERTER TODO TASK: Java annotations will not correspond to .NET attributes:
public enum BridgeReplicatorRole {
Active(0x001),
Passive(0x002),
Connected(0x004),
Disconnected(0x008),
Master(0x010),
Slave(0x020);
private static java.util.HashMap mappings;
private int intValue;
private BridgeReplicatorRole(int value) {
intValue = value;
BridgeReplicatorRole.getMappings().put(value, this);
}
private static java.util.HashMap getMappings() {
if (mappings == null) {
synchronized (BridgeReplicatorRole.class) {
if (mappings == null) {
mappings = new java.util.HashMap();
}
}
}
return mappings;
}
public static BridgeReplicatorRole forValue(int value) {
return getMappings().get(value);
}
public int getValue() {
return intValue;
}
}