@Test public void doConvert() { Assert.assertEquals( (Integer) 47, converter.convert( "47" ) ); }
@Nullable @Override public Integer doConvert( @Nonnull String source ) throws ConversionException { try { return Integer.parseInt( source ); } catch ( NumberFormatException e ) { throw new ConversionException( "Could not convert string to an integer value: " + source, e ); } }
StringToIntegerConverter extends TypedConverter<String, Integer> { @Nullable @Override public Integer doConvert( @Nonnull String source ) throws ConversionException { try { return Integer.parseInt( source ); } catch ( NumberFormatException e ) { throw new ConversionException( "Could not convert string to an integer value: " + source, e ); } } }
StringToIntegerConverter extends TypedConverter<String, Integer> { @Nullable @Override public Integer doConvert( @Nonnull String source ) throws ConversionException { try { return Integer.parseInt( source ); } catch ( NumberFormatException e ) { throw new ConversionException( "Could not convert string to an integer value: " + source, e ); } } StringToIntegerConverter(); }
StringToIntegerConverter extends TypedConverter<String, Integer> { @Nullable @Override public Integer doConvert( @Nonnull String source ) throws ConversionException { try { return Integer.parseInt( source ); } catch ( NumberFormatException e ) { throw new ConversionException( "Could not convert string to an integer value: " + source, e ); } } StringToIntegerConverter(); @Nullable @Override Integer doConvert( @Nonnull String source ); }
StringToIntegerConverter extends TypedConverter<String, Integer> { @Nullable @Override public Integer doConvert( @Nonnull String source ) throws ConversionException { try { return Integer.parseInt( source ); } catch ( NumberFormatException e ) { throw new ConversionException( "Could not convert string to an integer value: " + source, e ); } } StringToIntegerConverter(); @Nullable @Override Integer doConvert( @Nonnull String source );  }