-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.ConfigurableComponent,icu.windea.breezeframework.core.component.ConfigurableConverter,icu.windea.breezeframework.core.component.Converter,icu.windea.breezeframework.core.component.GenericConverter,icu.windea.breezeframework.core.component.TypedComponent,icu.windea.breezeframework.core.model.Configurable
@ConfigParam(name = separator, type = String, defaultValue = ,)@ConfigParam(name = prefix, type = String, defaultValue = )@ConfigParam(name = suffix, type = String, defaultValue = )@ConfigParam(name = delegate, type = list | set, defaultValue = list)@ConfigParamsPassing(target = Converter.ListConverter.class)@ConfigParamsPassing(target = Converter.SetConverter.class) public class Converter.StreamConverter extends AbstractConverter<Stream<?>> implements ConfigurableConverter<Stream<?>>, GenericConverter<Stream<?>>
配置参数说明:
separator - 从字符串转化为流时使用的分隔符。
prefix - 从字符串转化为流时使用的前缀。
suffix - 从字符串转化为流时使用的后缀。
delegate - 委托的转化器(列表转化器/集转化器)。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverter.StreamConverter.Default
-
Field Summary
Fields Modifier and Type Field Description private final Stringdelegateprivate final Map<String, Object>configParamsprivate final Class<Stream<?>>targetType
-
Constructor Summary
Constructors Constructor Description Converter.StreamConverter(Map<String, Object> configParams)
-
Method Summary
Modifier and Type Method Description final StringgetDelegate()final Map<String, Object>getConfigParams()配置参数。 Class<Stream<?>>getTargetType()目标类型。 Converter.StreamConverterconfigure(Map<String, Object> configParams)根据指定的配置复制当前对象,返回一个新对象。 Stream<?>convert(Object value, Type targetType)Stream<?>convertOrNull(Object value, Type targetType)-
Methods inherited from class icu.windea.breezeframework.core.component.AbstractConverter
convert, convertOrNull -
Methods inherited from class icu.windea.breezeframework.core.component.Converter.StreamConverter
equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDelegate
final String getDelegate()
-
getConfigParams
final Map<String, Object> getConfigParams()
配置参数。
-
getTargetType
Class<Stream<?>> getTargetType()
目标类型。
-
configure
Converter.StreamConverter configure(Map<String, Object> configParams)
根据指定的配置复制当前对象,返回一个新对象。
-
convertOrNull
Stream<?> convertOrNull(Object value, Type targetType)
-
-
-
-