Class Parser.EnumParser<E extends java.lang.Enum<E>>

  • All Implemented Interfaces:
    Parser<E>
    Enclosing interface:
    Parser<T>

    public static class Parser.EnumParser<E extends java.lang.Enum<E>>
    extends java.lang.Object
    implements Parser<E>
    A converter to enum constant values.
    • Constructor Detail

      • EnumParser

        public EnumParser​(java.lang.Class<E> klass)
    • Method Detail

      • parse

        public E parse​(java.lang.String name)
        Description copied from interface: Parser
        Parse the value into a typed instance.
        Specified by:
        parse in interface Parser<E extends java.lang.Enum<E>>
        Parameters:
        name - The string value.
        Returns:
        The typed instance.