Class DoubleArrayFloatArrayConverter

java.lang.Object
com.saperion.common.lang.conversion.array.DoubleArrayFloatArrayConverter
All Implemented Interfaces:
Converter<double[],float[]>

public class DoubleArrayFloatArrayConverter extends Object implements Converter<double[],float[]>
Converts a double[] to a float[]
Author:
jschwarz
  • Constructor Details

    • DoubleArrayFloatArrayConverter

      public DoubleArrayFloatArrayConverter()
  • Method Details

    • convert

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