类 StringToIterableConverter<T extends java.lang.Iterable>

    • 构造器详细资料

      • StringToIterableConverter

        public StringToIterableConverter()
    • 方法详细资料

      • 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<T extends java.lang.Iterable>
        参数:
        type - the source type
        multiValueType - the multi-value type
        返回:
        if accepted, return true, or false
      • convert

        public final java.lang.Object convert​(java.lang.String[] segments,
                                              int size,
                                              java.lang.Class<?> multiValueType,
                                              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
        multiValueType - the target type
        elementType - the element type
        返回:
        multiple value object
      • createMultiValue

        protected abstract T createMultiValue​(int size,
                                              java.lang.Class<?> multiValueType)
      • getStringConverter

        protected java.util.Optional<StringConverter> getStringConverter​(java.lang.Class<?> elementType)
      • getSupportedType

        protected final java.lang.Class<T> getSupportedType()