Class NumberByteConverter<NumberType extends Number>
java.lang.Object
com.saperion.common.lang.conversion.primitive.NumberByteConverter<NumberType>
public class NumberByteConverter<NumberType extends Number>
extends Object
implements Converter<NumberType,Byte>
converts number to byte.
- Author:
- jschwarz
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert
(NumberType number) Converts the specified object and returns the conversion result.
-
Constructor Details
-
NumberByteConverter
public NumberByteConverter()
-
-
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,
Byte> - Parameters:
number
- object to convert- Returns:
- the converted object
-