com.twitter.common.args.parsers
Class TimeDurationParser

java.lang.Object
  extended by com.twitter.common.args.parsers.TimeDurationParser

A parser for Duration objects.

 Accepts in input the same format as the Amount<Long, Time> parser,
 <number><unit> i.e. 10ns, 1days


Constructor Summary
TimeDurationParser()
          
Method Summary
 com.twitter.util.Duration 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

TimeDurationParser

public TimeDurationParser()
Method Detail

parse

public com.twitter.util.Duration parse(ParserOracle parserOracle,
                                       Type type,
                                       String raw)
                                throws IllegalArgumentException
Throws:
IllegalArgumentException