Class NumberLongConverter<NumberType extends Number>

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

public class NumberLongConverter<NumberType extends Number> extends Object implements Converter<NumberType,Long>
Converts integer to long.
Author:
jschwarz
  • Constructor Details

    • NumberLongConverter

      public NumberLongConverter()
  • Method Details

    • convert

      public Long 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,Long>
      Parameters:
      number - object to convert
      Returns:
      the converted object