Home
last modified time | relevance | path

Searched refs:namesToEnum (Results 1 – 1 of 1) sorted by relevance

/external/cldr/tools/java/org/unicode/cldr/util/
DEnumNames.java9 private Map<String, T> namesToEnum = new HashMap<String, T>(); field in EnumNames
14 namesToEnum.put(name, enumItem); in add()
15 namesToEnum.put(name.toLowerCase(Locale.ENGLISH), enumItem); in add()
22 namesToEnum.put(other, enumItem); in add()
23 namesToEnum.put(other.toLowerCase(Locale.ENGLISH), enumItem); in add()
29 T result = namesToEnum.get(name); in forString()
33 result = namesToEnum.get(name.toLowerCase(Locale.ENGLISH)); in forString()
37 …legalArgumentException("No enum value for " + name + ", should be one of " + namesToEnum.keySet()); in forString()