Class IntegerArrayIntArrayConverter

java.lang.Object
com.saperion.common.lang.conversion.array.IntegerArrayIntArrayConverter
All Implemented Interfaces:
Converter<Integer[],int[]>

public class IntegerArrayIntArrayConverter extends Object implements Converter<Integer[],int[]>
Converts Integer[] to int[] will convert null to 0.
Author:
jschwarz
  • Constructor Details

    • IntegerArrayIntArrayConverter

      public IntegerArrayIntArrayConverter()
  • Method Details

    • convert

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