public static final class AutoMapper.Options extends Object
Constructor and Description |
---|
AutoMapper.Options() |
Modifier and Type | Method and Description |
---|---|
Mapper.MappingStyle |
getMappingStyle() |
int |
getMaxThreadCount() |
boolean |
isKeepMapping() |
boolean |
isMarkBonds() |
AutoMapper.Options |
setKeepMapping(boolean keepMapping)
Default value
true |
AutoMapper.Options |
setMappingStyle(Mapper.MappingStyle mappingStyle)
Default value
Mapper.MappingStyle.COMPLETE |
AutoMapper.Options |
setMarkBonds(boolean markBonds)
Default value
false |
AutoMapper.Options |
setMaxThreadCount(int maxThreadCount)
Default value
Integer.MAX_VALUE The number of threads used for mapping will be the minimum of maxThreadCount and the number of available processors. |
public Mapper.MappingStyle getMappingStyle()
public AutoMapper.Options setMappingStyle(Mapper.MappingStyle mappingStyle)
Mapper.MappingStyle.COMPLETE
mappingStyle
- the mappingStyle to setMapper.MappingStyle
public boolean isMarkBonds()
public AutoMapper.Options setMarkBonds(boolean markBonds)
false
markBonds
- the markBonds to setpublic boolean isKeepMapping()
public AutoMapper.Options setKeepMapping(boolean keepMapping)
true
keepMapping
- the keepMapping to setpublic int getMaxThreadCount()
public AutoMapper.Options setMaxThreadCount(int maxThreadCount)
Integer.MAX_VALUE
maxThreadCount
- the maxThreadCount to setIllegalArgumentException
- when maxThreadCount less than 1