Class ArrayConverter.Number2D

java.lang.Object
org.tudalgo.algoutils.tutor.general.conversion.AbstractArrayNodeConversion<Number[]>
org.tudalgo.algoutils.tutor.general.conversion.ArrayConverter.Number2D
All Implemented Interfaces:
org.junit.jupiter.params.converter.ArgumentConverter
Enclosing class:
ArrayConverter

public static class ArrayConverter.Number2D extends AbstractArrayNodeConversion<Number[]>
  • Constructor Details

    • Number2D

      public Number2D()
  • Method Details

    • convert

      public Number[][] convert(com.fasterxml.jackson.databind.node.ArrayNode arrayNode, org.junit.jupiter.api.extension.ParameterContext context) throws org.junit.jupiter.params.converter.ArgumentConversionException
      Description copied from class: AbstractArrayNodeConversion
      Converts a JSON array into another type.
      Specified by:
      convert in class AbstractArrayNodeConversion<Number[]>
      Parameters:
      arrayNode - the JSON array node to be converted
      context - context in which the parameter is converted
      Returns:
      a converted object
      Throws:
      org.junit.jupiter.params.converter.ArgumentConversionException - if the conversion fails