Package ucar.nc2
Class EnumTypedef
- java.lang.Object
-
- ucar.nc2.CDMNode
-
- ucar.nc2.EnumTypedef
-
@Immutable public class EnumTypedef extends ucar.nc2.CDMNode
A named map from integers to Strings; a user-defined Enum used as a Variable's data type. For ENUM1, ENUM2, ENUM4 enumeration types. Immutable. TODO EnumTypedef will not extend CDMNode in 6. TODO EnumTypedef will not have a reference to its owning Group in 6. TODO EnumTypedef.getFullName() will not exist in 6.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Method Detail
-
getBaseType
public DataType getBaseType()
One of DataType.ENUM1, DataType.ENUM2, or DataType.ENUM4.
-
lookupEnumString
@Nullable public String lookupEnumString(int e)
Get the name corresponding to the enum value.
-
lookupEnumInt
@Nullable public Integer lookupEnumInt(String name)
Get the enum value corresponding to the name.
-
equalsMapOnly
public boolean equalsMapOnly(Object o)
-
-