Class XmlToEnumMapper<T extends Enum<?>>

java.lang.Object
google.registry.util.XmlToEnumMapper<T>

public final class XmlToEnumMapper<T extends Enum<?>> extends Object
Efficient lookup from xml enums to java enums
  • Method Details

    • xmlToEnum

      public T xmlToEnum(String value)
      Look up T from the XmlEnumValue
    • create

      public static <T extends Enum<?>> XmlToEnumMapper<T> create(T[] enumValues)
      Creates a new XmlToEnumMapper from xml value to enum value.