Class NumberByteConverter<NumberType extends Number>

java.lang.Object
com.saperion.common.lang.conversion.primitive.NumberByteConverter<NumberType>
All Implemented Interfaces:
Converter<NumberType,Byte>

public class NumberByteConverter<NumberType extends Number> extends Object implements Converter<NumberType,Byte>
converts number to byte.
Author:
jschwarz
  • Constructor Details

    • NumberByteConverter

      public NumberByteConverter()
  • Method Details

    • convert

      public Byte convert(NumberType number)
      Description copied from interface: Converter
      Converts the specified object and returns the conversion result.

      Implementations have to accept null-values without throwing exceptions.

      Specified by:
      convert in interface Converter<NumberType extends Number,Byte>
      Parameters:
      number - object to convert
      Returns:
      the converted object