Alachisoft.NCache.Common.DataStructures.BridgeOpCodes Maven / Gradle / Ivy
package Alachisoft.NCache.Common.DataStructures;
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
//#if !EXPRESS || (EXPRESS && PROFESSIONAL)
//#else
//#endif
//C# TO JAVA CONVERTER TODO TASK: There is no preprocessor in Java:
//#if ENTERPRISE || MONO
//C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: public enum BridgeOpCodes : byte
public enum BridgeOpCodes {
Add(1),
Remove(2),
Update(3),
Clear(4),
RemoveRange(5),
RemoveGroup(6),
RemoveKeyDep(7),
AddHint(8),
AddSyncDependency(9),
RegisterKeyNotification(10),
UnregisterKeyNotification(11),
AddDepKeyList(12),
RemoveDepKeyList(13),
UpdateIndice(14),
OpenStream(15),
CloseStream(16),
WriteToStream(17);
private static java.util.HashMap mappings;
private int intValue;
private BridgeOpCodes(int value) {
intValue = value;
BridgeOpCodes.getMappings().put(value, this);
}
private static java.util.HashMap getMappings() {
if (mappings == null) {
synchronized (BridgeOpCodes.class) {
if (mappings == null) {
mappings = new java.util.HashMap();
}
}
}
return mappings;
}
public static BridgeOpCodes forValue(int value) {
return getMappings().get(value);
}
public int getValue() {
return intValue;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy