Code example for SimpleTypeConverter

0
    private Object convertId(String idString, Class<?> clazz) {
        Object id;
        try{ 
            id = Formatters.conversion.convert(idString, modelInfo.getId().getFieldClass());
        }catch (Exception e) {
            id = new SimpleTypeConverter().convertIfNecessary(idString, modelInfo.getId().getFieldClass());
        } 
        return id;
    } 
 
    public Object getId() {
        String idString = form.field(modelInfo.getId().getField().getName()).value();
        return convertId(idString, modelInfo.getId().getFieldClass());
    } 
 
    public String getUrlId() {
        return Formatters.print(getId()); 
    } 
 
    public String getRowId() {
Connect your IDE to all the code out there  Get Codota for Java