com.twitter.common.args
Class Parsers

java.lang.Object
  extended by com.twitter.common.args.Parsers

public final class Parsers
extends Object

A registry of Parsers for different supported argument types.


Field Summary
static Splitter MULTI_VALUE_SPLITTER
           
 
Constructor Summary
Parsers(Map<Class<?>,> parsers)
          Creates a new parser registry over the specified parsers.
 
Method Summary
<T>
get(TypeToken<T> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MULTI_VALUE_SPLITTER

public static final Splitter MULTI_VALUE_SPLITTER
Constructor Detail

Parsers

public Parsers(Map<Class<?>,> parsers)
Creates a new parser registry over the specified parsers.

Parameters:
parsers - The parsers to register.
Method Detail

get

public <T>  get(TypeToken<T> type)
          throws IllegalArgumentException
Throws:
IllegalArgumentException