Package io.microsphere.convert.multiple
Interface StringToMultiValueConverter
-
- All Superinterfaces:
java.lang.Comparable<Prioritized>
,MultiValueConverter<java.lang.String>
,Prioritized
- All Known Implementing Classes:
StringToArrayConverter
,StringToBlockingDequeConverter
,StringToBlockingQueueConverter
,StringToCollectionConverter
,StringToDequeConverter
,StringToIterableConverter
,StringToListConverter
,StringToNavigableSetConverter
,StringToQueueConverter
,StringToSetConverter
,StringToSortedSetConverter
,StringToTransferQueueConverter
public interface StringToMultiValueConverter extends MultiValueConverter<java.lang.String>
The class to convertString
to multiple value object- Since:
- 1.0.0
- See Also:
MultiValueConverter
-
-
Field Summary
-
Fields inherited from interface io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description java.lang.Object
convert(java.lang.String[] segments, int size, java.lang.Class<?> targetType, java.lang.Class<?> elementType)
Convert the segments to multiple value objectdefault java.lang.Object
convert(java.lang.String source, java.lang.Class<?> multiValueType, java.lang.Class<?> elementType)
Convert the source to be the multiple value-
Methods inherited from interface io.microsphere.convert.multiple.MultiValueConverter
accept, getSourceType
-
Methods inherited from interface io.microsphere.lang.Prioritized
compareTo, getPriority
-
-
-
-
Method Detail
-
convert
default java.lang.Object convert(java.lang.String source, java.lang.Class<?> multiValueType, java.lang.Class<?> elementType)
Description copied from interface:MultiValueConverter
Convert the source to be the multiple value- Specified by:
convert
in interfaceMultiValueConverter<java.lang.String>
- Parameters:
source
- the source-typed valuemultiValueType
- the multi-value typeelementType
- the element type- Returns:
-
convert
java.lang.Object convert(java.lang.String[] segments, int size, java.lang.Class<?> targetType, java.lang.Class<?> elementType)
Convert the segments to multiple value object- Parameters:
segments
- the String array of contentsize
- the size of multiple value objecttargetType
- the target typeelementType
- the element type- Returns:
- multiple value object
-
-