-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.Converter,icu.windea.breezeframework.core.component.GenericConverter
@ComponentParam(name = "separator", type = "String", defaultValue = ",")@ComponentParam(name = "prefix", type = "String", defaultValue = "")@ComponentParam(name = "suffix", type = "String", defaultValue = "") public class Converters.SetConverter extends AbstractConverter<Set<?>> implements GenericConverter<Set<?>>
组件参数说明:
separator - 从字符串转化为集时使用的分隔符。
prefix - 从字符串转化为集时使用的前缀。
suffix - 从字符串转化为集时使用的后缀。
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classConverters.SetConverter.Default
-
Field Summary
Fields Modifier and Type Field Description private final Stringseparatorprivate final Stringprefixprivate final Stringsuffixprivate final Map<String, Object>componentParamsprivate final Class<Set<?>>targetTypeprivate final StringcomponentId
-
Constructor Summary
Constructors Constructor Description Converters.SetConverter(Map<String, Object> componentParams)
-
Method Summary
Modifier and Type Method Description final StringgetSeparator()final StringgetPrefix()final StringgetSuffix()final Map<String, Object>getComponentParams()组件参数。组件参数默认会向下传递。Component parameters. Class<Set<?>>getTargetType()StringgetComponentId()Set<?>convert(Object value, Type targetType)Converters.SetConvertercomponentCopy(Map<String, Object> componentParams)-
Methods inherited from class icu.windea.breezeframework.core.component.AbstractConverter
convert, convertOrNull -
Methods inherited from class icu.windea.breezeframework.core.component.Converters.SetConverter
convertOrNull, equals, hashCode, toString -
Methods inherited from class icu.windea.breezeframework.core.component.Converter
componentEquals, componentHashcode, componentToString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getSeparator
final String getSeparator()
-
getComponentParams
final Map<String, Object> getComponentParams()
组件参数。组件参数默认会向下传递。
Component parameters. By default, component parameters will pass down.
-
getTargetType
Class<Set<?>> getTargetType()
-
getComponentId
String getComponentId()
-
componentCopy
Converters.SetConverter componentCopy(Map<String, Object> componentParams)
-
-
-
-