Class NumberByteConverter<NumberType extends java.lang.Number>

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

    public class NumberByteConverter<NumberType extends java.lang.Number>
    extends java.lang.Object
    implements Converter<NumberType,​java.lang.Byte>
    converts number to byte.
    Author:
    jschwarz
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Byte 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

      • NumberByteConverter

        public NumberByteConverter()
    • Method Detail

      • convert

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