Alachisoft.NCache.Parser.EntryContent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nc-parser Show documentation
Show all versions of nc-parser Show documentation
Internal package of Alachisoft.
package Alachisoft.NCache.Parser;
/**
* Represents the type of an entry in the CGT file.
*/
public enum EntryContent {
/**
*
*/
Empty(69),
/**
*
*/
Integer(73),
/**
*
*/
String(83),
/**
*
*/
Boolean(66),
/**
*
*/
Byte(98),
/**
*
*/
Multi(77);
private static java.util.HashMap mappings;
private int intValue;
private EntryContent(int value) {
intValue = value;
EntryContent.getMappings().put(value, this);
}
private static java.util.HashMap getMappings() {
if (mappings == null) {
synchronized (EntryContent.class) {
if (mappings == null) {
mappings = new java.util.HashMap();
}
}
}
return mappings;
}
public static EntryContent forValue(int value) {
return getMappings().get(value);
}
public int getValue() {
return intValue;
}
}