Class IntArrayShortArrayConverter

  • All Implemented Interfaces:
    Converter<int[],​short[]>

    public class IntArrayShortArrayConverter
    extends java.lang.Object
    implements Converter<int[],​short[]>
    Converts int[] to short[]
    Author:
    jschwarz
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      short[] convert​(int[] integers)
      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

      • IntArrayShortArrayConverter

        public IntArrayShortArrayConverter()
    • Method Detail

      • convert

        public short[] convert​(int[] integers)
        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<int[],​short[]>
        Parameters:
        integers - object to convert
        Returns:
        the converted object