-
- All Implemented Interfaces:
-
icu.windea.breezeframework.core.component.Component,icu.windea.breezeframework.core.component.Converter,icu.windea.breezeframework.core.component.GenericConverter
public class Converters.EnumConverter extends AbstractConverter<Enum<?>> implements GenericConverter<Enum<?>>
-
-
Field Summary
Fields Modifier and Type Field Description private final Class<Enum<?>>targetTypeprivate final StringcomponentIdprivate final Map<String, Object>componentParamspublic final static Converters.EnumConverterINSTANCE
-
Method Summary
Modifier and Type Method Description Enum<?>convert(Object value, Type targetType)Enum<?>convertOrNull(Object value, Type targetType)Class<Enum<?>>getTargetType()StringgetComponentId()Map<String, Object>getComponentParams()-
Methods inherited from class icu.windea.breezeframework.core.component.AbstractConverter
componentCopy, convert, convertOrNull -
Methods inherited from class icu.windea.breezeframework.core.component.Converters.EnumConverter
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
-
convertOrNull
Enum<?> convertOrNull(Object value, Type targetType)
-
getTargetType
Class<Enum<?>> getTargetType()
-
getComponentId
String getComponentId()
-
getComponentParams
Map<String, Object> getComponentParams()
-
-
-
-