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_VALUEThe 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.COMPLETEmappingStyle - the mappingStyle to setMapper.MappingStylepublic boolean isMarkBonds()
public AutoMapper.Options setMarkBonds(boolean markBonds)
falsemarkBonds - the markBonds to setpublic boolean isKeepMapping()
public AutoMapper.Options setKeepMapping(boolean keepMapping)
truekeepMapping - the keepMapping to setpublic int getMaxThreadCount()
public AutoMapper.Options setMaxThreadCount(int maxThreadCount)
Integer.MAX_VALUEmaxThreadCount - the maxThreadCount to setIllegalArgumentException - when maxThreadCount less than 1