com.enonic.xp.convert.ShortConverter Maven / Gradle / Ivy
The newest version!
package com.enonic.xp.convert;
final class ShortConverter
extends NumberConverter
{
ShortConverter()
{
super( Short.class );
}
@Override
protected Short fromNumber( final Number value )
{
return value.shortValue();
}
@Override
protected Short parse( final String value )
{
return Short.parseShort( value );
}
}