Interface StringToMultiValueConverter

    • Method Detail

      • convert

        default java.lang.Object convert​(java.lang.String source,
                                         java.lang.Class<?> multiValueType,
                                         java.lang.Class<?> elementType)
        Description copied from interface: MultiValueConverter
        Convert the source to be the multiple value
        Specified by:
        convert in interface MultiValueConverter<java.lang.String>
        Parameters:
        source - the source-typed value
        multiValueType - the multi-value type
        elementType - the element type
        Returns:
      • convert

        java.lang.Object convert​(java.lang.String[] segments,
                                 int size,
                                 java.lang.Class<?> targetType,
                                 java.lang.Class<?> elementType)
        Convert the segments to multiple value object
        Parameters:
        segments - the String array of content
        size - the size of multiple value object
        targetType - the target type
        elementType - the element type
        Returns:
        multiple value object