com.twitter.common.args.parsers
Class UnitParser

java.lang.Object
  extended by com.twitter.common.args.parsers.NonParameterizedTypeParser<Unit>
      extended by com.twitter.common.args.parsers.UnitParser

Unit parser.
 Units are matched (case sensitively) against the result of Unit#toString().


Constructor Summary
UnitParser()
          
Method Summary
 Unit doParse(String raw)
          
Methods inherited from class com.twitter.common.args.parsers.NonParameterizedTypeParser
parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnitParser

public UnitParser()
Method Detail

doParse

public Unit doParse(String raw)
Description copied from class: NonParameterizedTypeParser
Performs the parsing of the raw string.

Specified by:
doParse in class NonParameterizedTypeParser<Unit>
Parameters:
raw - Value to parse.
Returns:
The parsed value.