@Immutable public class EnumTypedef extends ucar.nc2.CDMNode
Constructor and Description |
---|
EnumTypedef(String name,
Map<Integer,String> map)
Make an EnumTypedef with base type ENUM4.
|
EnumTypedef(String name,
Map<Integer,String> map,
DataType basetype)
Make an EnumTypedef setting the base type (must be ENUM1, ENUM2, ENUM4).
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
boolean |
equalsMapOnly(Object o) |
DataType |
getBaseType()
One of DataType.ENUM1, DataType.ENUM2, or DataType.ENUM4.
|
com.google.common.collect.ImmutableMap<Integer,String> |
getMap() |
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)
public boolean equalsMapOnly(Object o)
public DataType getBaseType()
@Nullable public Integer lookupEnumInt(String name)
@Nullable public String lookupEnumString(int e)