for (int i = 0; i < ALL.length; i++)
{
ID3v1Genre genre = ALL[i];
String name = genre.name;
Number id = new Integer(genre.id);
ID_TO_NAME_MAP.put(id, name);
NAME_TO_ID_MAP.put(name, id);
String simple = simplify(name);
SIMPLE_NAME_TO_ID_MAP.put(simple, id);
}
Number result = (Number) NAME_TO_ID_MAP.get(name);
if (result != null)
return result;
String simple = simplify(name);
result = (Number) SIMPLE_NAME_TO_ID_MAP.get(simple);
return result;