Class NumberIntegerConverter<NumberType extends java.lang.Number>

  • All Implemented Interfaces:
    Converter<NumberType,​java.lang.Integer>

    public class NumberIntegerConverter<NumberType extends java.lang.Number>
    extends java.lang.Object
    implements Converter<NumberType,​java.lang.Integer>
    Converts Number to Integer by calling Number.intValue().
    Author:
    jschwarz
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer convert​(NumberType number)
      Converts the specified object and returns the conversion result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NumberIntegerConverter

        public NumberIntegerConverter()
    • Method Detail

      • convert

        public java.lang.Integer 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 java.lang.Number,​java.lang.Integer>
        Parameters:
        number - object to convert
        Returns:
        the converted object