类 StringToIterableConverter<T extends java.lang.Iterable>
- java.lang.Object
-
- io.microsphere.convert.multiple.StringToIterableConverter<T>
-
- 所有已实现的接口:
MultiValueConverter<java.lang.String>
,StringToMultiValueConverter
,Prioritized
,java.lang.Comparable<Prioritized>
- 直接已知子类:
StringToBlockingDequeConverter
,StringToBlockingQueueConverter
,StringToCollectionConverter
,StringToDequeConverter
,StringToListConverter
,StringToNavigableSetConverter
,StringToQueueConverter
,StringToSetConverter
,StringToSortedSetConverter
,StringToTransferQueueConverter
public abstract class StringToIterableConverter<T extends java.lang.Iterable> extends java.lang.Object implements StringToMultiValueConverter
The class to convertString
toIterable
-based value- 从以下版本开始:
- 1.0.0
-
-
字段概要
-
从接口继承的字段 io.microsphere.lang.Prioritized
COMPARATOR, MAX_PRIORITY, MIN_PRIORITY, NORMAL_PRIORITY
-
-
构造器概要
构造器 构造器 说明 StringToIterableConverter()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 boolean
accept(java.lang.Class<java.lang.String> type, java.lang.Class<?> multiValueType)
Accept the source type and target type or notjava.lang.Object
convert(java.lang.String[] segments, int size, java.lang.Class<?> multiValueType, java.lang.Class<?> elementType)
Convert the segments to multiple value objectprotected abstract T
createMultiValue(int size, java.lang.Class<?> multiValueType)
int
getPriority()
Get the priorityprotected java.util.Optional<StringConverter>
getStringConverter(java.lang.Class<?> elementType)
protected java.lang.Class<T>
getSupportedType()
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 io.microsphere.convert.multiple.MultiValueConverter
getSourceType
-
从接口继承的方法 io.microsphere.lang.Prioritized
compareTo
-
从接口继承的方法 io.microsphere.convert.multiple.StringToMultiValueConverter
convert
-
-
-
-
方法详细资料
-
accept
public boolean accept(java.lang.Class<java.lang.String> type, java.lang.Class<?> multiValueType)
从接口复制的说明:MultiValueConverter
Accept the source type and target type or not- 指定者:
accept
在接口中MultiValueConverter<T extends java.lang.Iterable>
- 参数:
type
- the source typemultiValueType
- the multi-value type- 返回:
- if accepted, return
true
, orfalse
-
convert
public final java.lang.Object convert(java.lang.String[] segments, int size, java.lang.Class<?> multiValueType, java.lang.Class<?> elementType)
从接口复制的说明:StringToMultiValueConverter
Convert the segments to multiple value object- 指定者:
convert
在接口中StringToMultiValueConverter
- 参数:
segments
- the String array of contentsize
- the size of multiple value objectmultiValueType
- the target typeelementType
- the element type- 返回:
- multiple value object
-
createMultiValue
protected abstract T createMultiValue(int size, java.lang.Class<?> multiValueType)
-
getStringConverter
protected java.util.Optional<StringConverter> getStringConverter(java.lang.Class<?> elementType)
-
getSupportedType
protected final java.lang.Class<T> getSupportedType()
-
getPriority
public final int getPriority()
从接口复制的说明:Prioritized
Get the priority- 指定者:
getPriority
在接口中Prioritized
- 返回:
- the default is
minimum one
-
-