接口 MultiValueConverter<S>

    • 方法详细资料

      • accept

        boolean accept​(Class<S> sourceType,
                       Class<?> multiValueType)
        Accept the source type and target type or not
        参数:
        sourceType - the source type
        multiValueType - the multi-value type
        返回:
        if accepted, return true, or false
      • convert

        Object convert​(S source,
                       Class<?> multiValueType,
                       Class<?> elementType)
        Convert the source to be the multiple value
        参数:
        source - the source-typed value
        multiValueType - the multi-value type
        elementType - the element type
        返回:
      • getSourceType

        default Class<S> getSourceType()
        Get the source type
        返回:
        non-null
      • convertIfPossible

        static <T> T convertIfPossible​(Object source,
                                       Class<?> multiValueType,
                                       Class<?> elementType)