cdm/src/main/java/ucar/nc2/EnumTypedef.java
public String lookupEnumString(int e) {
    String result = map.get(e);
    return (result == null) ? "Unknown enum value=" + e : result;
  }
public String lookupEnumString(int e) {
    String result = map.get(e);
    return (result == null) ? "Unknown enum value=" + e : result;
  }
public String lookupEnumString ( int e ) { String result = map . get ( e ) ; return ( result == null ) ? "Unknown enum value=" + e : result ; }
/* private boolean
IgnoreinRange(int i) {
WARNING, we do not have signed/unsigned info available
if (this.basetype == DataType.ENUM1
&& (i >= Byte.MIN_VALUE || i <= UBYTE_MAX))
return true;
else if (this.basetype == DataType.ENUM2
&& (i >= Short.MIN_VALUE || i <= USHORT_MAX))
return true;
else if (this.basetype == DataType.ENUM4) // always ok
return true;
else
return false;
}
/ * private boolean IgnoreinRange ( int i ) { WARNING we do not have signed / unsigned info available if ( this . basetype == DataType . ENUM1 && ( i > = Byte . MIN_VALUE || i < = UBYTE_MAX )) return true ; else if ( this . basetype == DataType . ENUM2 && ( i > = Short . MIN_VALUE || i < = USHORT_MAX )) return true ; else if ( this . basetype == DataType . ENUM4 ) // always ok return true ; else return false ; }