com.twitter.common.args.parsers
Class EnumParser<T extends Enum<T>>

java.lang.Object
  extended by com.twitter.common.args.parsers.EnumParser<T>

An Enum parser that matches enum values via Enum.valueOf(Class, String).


Constructor Summary
EnumParser()
          
Method Summary
 T parse(ParserOracle parserOracle, Type type, String raw)
          
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumParser

public EnumParser()
Method Detail

parse

public T parse(ParserOracle parserOracle,
               Type type,
               String raw)
                        throws IllegalArgumentException
Throws:
IllegalArgumentException