Class IntArrayByteArrayConverter

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

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      byte[] 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

      • IntArrayByteArrayConverter

        public IntArrayByteArrayConverter()
    • Method Detail

      • convert

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