类 StringToArrayConverter
- java.lang.Object
-
- org.apache.dubbo.common.convert.multiple.StringToArrayConverter
-
- 所有已实现的接口:
Comparable<Prioritized>,MultiValueConverter<String>,StringToMultiValueConverter,Prioritized
public class StringToArrayConverter extends Object implements StringToMultiValueConverter
The class to convertStringto array-type object- 从以下版本开始:
- 2.7.6
-
-
字段概要
-
从接口继承的字段 org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
构造器概要
构造器 构造器 说明 StringToArrayConverter()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 booleanaccept(Class<String> type, Class<?> multiValueType)Accept the source type and target type or notObjectconvert(String[] segments, int size, Class<?> targetType, Class<?> elementType)Convert the segments to multiple value objectintgetPriority()Get the priority-
从接口继承的方法 org.apache.dubbo.common.convert.multiple.MultiValueConverter
getSourceType
-
从接口继承的方法 org.apache.dubbo.common.lang.Prioritized
compareTo
-
从接口继承的方法 org.apache.dubbo.common.convert.multiple.StringToMultiValueConverter
convert
-
-
-
-
方法详细资料
-
accept
public boolean accept(Class<String> type, Class<?> multiValueType)
从接口复制的说明:MultiValueConverterAccept the source type and target type or not- 指定者:
accept在接口中MultiValueConverter<String>- 参数:
type- the source typemultiValueType- the multi-value type- 返回:
- if accepted, return
true, orfalse
-
convert
public Object convert(String[] segments, int size, Class<?> targetType, Class<?> elementType)
从接口复制的说明:StringToMultiValueConverterConvert the segments to multiple value object- 指定者:
convert在接口中StringToMultiValueConverter- 参数:
segments- the String array of contentsize- the size of multiple value objecttargetType- the target typeelementType- the element type- 返回:
- multiple value object
-
getPriority
public int getPriority()
从接口复制的说明:PrioritizedGet the priority- 指定者:
getPriority在接口中Prioritized- 返回:
- the default is
Prioritized.NORMAL_PRIORITY
-
-