Package google.registry.util
Class XmlToEnumMapper<T extends Enum<?>>
java.lang.Object
google.registry.util.XmlToEnumMapper<T>
Efficient lookup from xml enums to java enums
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<?>>
XmlToEnumMapper<T> create
(T[] enumValues) Creates a newXmlToEnumMapper
from xml value to enum value.Look up T from theXmlEnumValue
-
Method Details
-
xmlToEnum
Look up T from theXmlEnumValue
-
create
Creates a newXmlToEnumMapper
from xml value to enum value.
-