类 StringToArrayConverter

    • 构造器详细资料

      • StringToArrayConverter

        public StringToArrayConverter()
    • 方法详细资料

      • accept

        public boolean accept​(java.lang.Class<java.lang.String> type,
                              java.lang.Class<?> multiValueType)
        从接口复制的说明: MultiValueConverter
        Accept the source type and target type or not
        指定者:
        accept 在接口中 MultiValueConverter<java.lang.String>
        参数:
        type - the source type
        multiValueType - the multi-value type
        返回:
        if accepted, return true, or false
      • convert

        public java.lang.Object convert​(java.lang.String[] segments,
                                        int size,
                                        java.lang.Class<?> targetType,
                                        java.lang.Class<?> elementType)
        从接口复制的说明: StringToMultiValueConverter
        Convert the segments to multiple value object
        指定者:
        convert 在接口中 StringToMultiValueConverter
        参数:
        segments - the String array of content
        size - the size of multiple value object
        targetType - the target type
        elementType - the element type
        返回:
        multiple value object