Class StringToIterableConverter<T extends Iterable>
java.lang.Object
org.apache.dubbo.common.convert.multiple.StringToIterableConverter<T>
- All Implemented Interfaces:
Comparable<Prioritized>,MultiValueConverter<String>,StringToMultiValueConverter,Prioritized
- Direct Known Subclasses:
StringToBlockingDequeConverter,StringToBlockingQueueConverter,StringToCollectionConverter,StringToDequeConverter,StringToListConverter,StringToNavigableSetConverter,StringToQueueConverter,StringToSetConverter,StringToSortedSetConverter,StringToTransferQueueConverter
public abstract class StringToIterableConverter<T extends Iterable>
extends Object
implements StringToMultiValueConverter
- 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 notfinal ObjectConvert the segments to multiple value objectfinal intGet 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
-
StringToIterableConverter
-
-
Method Details
-
accept
Description copied from interface:MultiValueConverterAccept the source type and target type or not- Specified by:
acceptin interfaceMultiValueConverter<T extends Iterable>- Parameters:
type- the source typemultiValueType- the multi-value type- Returns:
- if accepted, return
true, orfalse
-
convert
public final Object convert(String[] segments, int size, Class<?> multiValueType, Class<?> elementType) 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 objectmultiValueType- the target typeelementType- the element type- Returns:
- multiple value object
-
getPriority
public final int getPriority()Description copied from interface:PrioritizedGet the priority- Specified by:
getPriorityin interfacePrioritized- Returns:
- the default is
Prioritized.NORMAL_PRIORITY
-