Code example for DefaultConversionService

0
 
    private final DefaultConversionService service;
 
    private ParameterConverter() 
    { 
        this.service = new DefaultConversionService();
    } 
 
    public Object convert( final String value, final Class<?> targetType )
        throws ConversionFailedException
    { 
        return this.service.convert( value, targetType );
    } 
 
    public static ParameterConverter getInstance() 
    { 
        return INSTANCE;
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java