/** * Gets the built in name for the value */ public static BuiltInName getBuiltInName(int val) { BuiltInName ret = FILTER_DATABASE; for (int i = 0 ; i < builtInNames.length; i++) { if (builtInNames[i].getValue() == val) { ret = builtInNames[i]; } } return ret; }
builtInName = BuiltInName.getBuiltInName(data[15]); String n = name != null ? name : builtInName.getName(); logger.warn("Cannot read name ranges for " + n + " - setting to empty");
builtInName = BuiltInName.getBuiltInName(data[15]); String n = name != null ? name : builtInName.getName(); logger.warn("Cannot read name ranges for " + n + " - setting to empty");
/** * Gets the built in name for the value */ public static BuiltInName getBuiltInName(int val) { BuiltInName ret = FILTER_DATABASE; for (int i = 0 ; i < builtInNames.length; i++) { if (builtInNames[i].getValue() == val) { ret = builtInNames[i]; } } return ret; }
data[15] = (byte) builtInName.getValue();
data[15] = (byte) builtInName.getValue();