public static < T > Class < FieldParser < T > > getParserForType ( Class < T > type ) { Class < ? extends FieldParser < ? > > parser = PARSERS . get ( type ) ; if ( parser == null ) { return null ; } else { @ SuppressWarnings ( "unchecked" ) Class < FieldParser < T > > typedParser = ( Class < FieldParser < T > > ) parser ; return typedParser ; } }
Gets the parser for the type specified by the given class . Returns null if no parser for that class is known .