Class NumberFloatConverter<NumberType extends Number>

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

public class NumberFloatConverter<NumberType extends Number> extends Object implements Converter<NumberType,Float>
Converts number to float.
Author:
jschwarz
  • Constructor Details

    • NumberFloatConverter

      public NumberFloatConverter()
  • Method Details

    • convert

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