Class StringToArrayConverter
java.lang.Object
org.apache.dubbo.common.convert.multiple.StringToArrayConverter
- All Implemented Interfaces:
Comparable<Prioritized>,MultiValueConverter<String>,StringToMultiValueConverter,Prioritized
The class to convert
String to array-type object- Since:
- 2.7.6
-
Field Summary
Fields inherited from interface org.apache.dubbo.common.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAccept the source type and target type or notConvert the segments to multiple value objectintGet the priorityMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.dubbo.common.convert.multiple.MultiValueConverter
getSourceTypeMethods inherited from interface org.apache.dubbo.common.lang.Prioritized
compareToMethods inherited from interface org.apache.dubbo.common.convert.multiple.StringToMultiValueConverter
convert
-
Constructor Details
-
StringToArrayConverter
-
-
Method Details
-
accept
Description copied from interface:MultiValueConverterAccept the source type and target type or not- Specified by:
acceptin interfaceMultiValueConverter<String>- Parameters:
type- the source typemultiValueType- the multi-value type- Returns:
- if accepted, return
true, orfalse
-
convert
Description copied from interface:StringToMultiValueConverterConvert the segments to multiple value object- Specified by:
convertin interfaceStringToMultiValueConverter- Parameters:
segments- the String array of contentsize- the size of multiple value objecttargetType- the target typeelementType- the element type- Returns:
- multiple value object
-
getPriority
public int getPriority()Description copied from interface:PrioritizedGet the priority- Specified by:
getPriorityin interfacePrioritized- Returns:
- the default is
Prioritized.NORMAL_PRIORITY
-