-
- 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 = )@ConfigParamsPassing(target = ConfigurableConverter.class, configParams = !separator,!prefix,!suffix) public class Converter.MutableSetConverter extends AbstractConverter<MutableSet<?>> implements ConfigurableConverter<MutableSet<?>>, GenericConverter<MutableSet<?>>
配置参数说明:
separator - 从字符串转化为可变集时使用的分隔符。
prefix - 从字符串转化为可变集时使用的前缀。
suffix - 从字符串转化为可变集时使用的后缀。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverter.MutableSetConverter.Default
-
Constructor Summary
Constructors Constructor Description Converter.MutableSetConverter(Map<String, Object> configParams)
-
Method Summary
Modifier and Type Method Description final StringgetSeparator()final StringgetPrefix()final StringgetSuffix()final Map<String, Object>getConfigParams()配置参数。 Class<Set<?>>getTargetType()目标类型。 Converter.MutableSetConverterconfigure(Map<String, Object> configParams)根据指定的配置复制当前对象,返回一个新对象。 Set<?>convert(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.MutableSetConverter
convertOrNull, equals, hashCode, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSeparator
final String getSeparator()
-
getConfigParams
final Map<String, Object> getConfigParams()
配置参数。
-
getTargetType
Class<Set<?>> getTargetType()
目标类型。
-
configure
Converter.MutableSetConverter configure(Map<String, Object> configParams)
根据指定的配置复制当前对象,返回一个新对象。
-
-
-
-