@Immutable public class EnumTypedef extends Object
| Constructor and Description |
|---|
EnumTypedef(String name,
Map<Integer,String> map)
Make an EnumTypedef with base type ENUM4.
|
EnumTypedef(String name,
Map<Integer,String> map,
ArrayType basetype)
Make an EnumTypedef setting the base type (must be ENUM1, ENUM2, ENUM4).
|
EnumTypedef(String name,
Map<Integer,String> map,
DataType basetype)
Deprecated.
use EnumTypedef(String name, Map
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
boolean |
equalsMapOnly(Object o) |
ArrayType |
getBaseArrayType()
One of ArrayType.ENUM1, ArrayType.ENUM2, or ArrayType.ENUM4.
|
DataType |
getBaseType()
Deprecated.
use getBaseArrayType()
|
com.google.common.collect.ImmutableMap<Integer,String> |
getMap() |
String |
getShortName() |
int |
hashCode() |
Integer |
lookupEnumInt(String name)
Get the enum value corresponding to the name.
|
String |
lookupEnumString(int e)
Get the name corresponding to the enum value.
|
String |
toString() |
public EnumTypedef(String name, Map<Integer,String> map)
@Deprecated public EnumTypedef(String name, Map<Integer,String> map, DataType basetype)
@Deprecated public DataType getBaseType()
public ArrayType getBaseArrayType()
public String getShortName()
@Nullable public Integer lookupEnumInt(String name)
@Nullable public String lookupEnumString(int e)
public boolean equalsMapOnly(Object o)