Class AnyToEnumConverter
java.lang.Object
io.beanmapper.core.converter.AbstractBeanConverter<Object,Enum<?>>
io.beanmapper.core.converter.impl.AnyToEnumConverter
- All Implemented Interfaces:
BeanConverter
Converts a string into an enumeration.
- Since:
- Jun 24, 2015
- Author:
- Jeroen van Schagen
-
Field Summary
Fields inherited from class io.beanmapper.core.converter.AbstractBeanConverter
beanMapper
-
Constructor Summary
-
Method Summary
Methods inherited from class io.beanmapper.core.converter.AbstractBeanConverter
convert, isMatchingSource, isMatchingTarget, match
-
Constructor Details
-
AnyToEnumConverter
public AnyToEnumConverter()
-
-
Method Details
-
doConvert
Description copied from class:AbstractBeanConverter
Convert a source instance to the target type.- Specified by:
doConvert
in classAbstractBeanConverter<Object,Enum<?>>
- Parameters:
source
- the source instancetargetClass
- the class type to convert to- Returns:
- the converted source instance
-