Class NumberShortConverter<NumberType extends Number>
java.lang.Object
com.saperion.common.lang.conversion.primitive.NumberShortConverter<NumberType>
public class NumberShortConverter<NumberType extends Number>
extends Object
implements Converter<NumberType,Short>
Converts integer to short.
- Author:
- jschwarz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert
(NumberType number) Converts the specified object and returns the conversion result.
-
Constructor Details
-
NumberShortConverter
public NumberShortConverter()
-
-
Method Details
-
convert
Description copied from interface:Converter
Converts the specified object and returns the conversion result. Implementations have to acceptnull
-values without throwing exceptions.- Specified by:
convert
in interfaceConverter<NumberType extends Number,
Short> - Parameters:
number
- object to convert- Returns:
- the converted object
-