Alachisoft.NCache.Parser.RecordId 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 a record in the CGT file.
*/
public enum RecordId {
/**
*
*/
Parameters(80),
/**
*
*/
TableCounts(84),
/**
*
*/
Initial(73),
/**
*
*/
Symbols(83),
/**
*
*/
CharSets(67),
/**
*
*/
Rules(82),
/**
*
*/
DFAStates(68),
/**
*
*/
LRTables(76),
/**
*
*/
Comment(33);
private static java.util.HashMap mappings;
private int intValue;
private RecordId(int value) {
intValue = value;
RecordId.getMappings().put(value, this);
}
private static java.util.HashMap getMappings() {
if (mappings == null) {
synchronized (RecordId.class) {
if (mappings == null) {
mappings = new java.util.HashMap();
}
}
}
return mappings;
}
public static RecordId forValue(int value) {
return getMappings().get(value);
}
public int getValue() {
return intValue;
}
}