com.enonic.xp.convert.IntegerConverter Maven / Gradle / Ivy
package com.enonic.xp.convert;
final class IntegerConverter
extends NumberConverter
{
IntegerConverter()
{
super( Integer.class );
}
@Override
protected Integer fromNumber( final Number value )
{
return value.intValue();
}
@Override
protected Integer parse( final String value )
{
return Integer.parseInt( value );
}
}