Class AutoMapper.Options

  • Enclosing class:
    AutoMapper

    public static final class AutoMapper.Options
    extends Object
    Option object for set common options when mapping called by static way.
    Since:
    6.0
    • Constructor Detail

      • Options

        public Options()
    • Method Detail

      • isMarkBonds

        public boolean isMarkBonds()
        Returns:
        the markBonds
      • setMarkBonds

        public AutoMapper.Options setMarkBonds​(boolean markBonds)
        Default value false
        Parameters:
        markBonds - the markBonds to set
        Returns:
        this option object
      • isKeepMapping

        public boolean isKeepMapping()
        Returns:
        the keepMapping
      • setKeepMapping

        public AutoMapper.Options setKeepMapping​(boolean keepMapping)
        Default value true
        Parameters:
        keepMapping - the keepMapping to set
        Returns:
        this option object
      • getMaxThreadCount

        public int getMaxThreadCount()
        Returns:
        the maxThreadCount
      • setMaxThreadCount

        public 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.
        Parameters:
        maxThreadCount - the maxThreadCount to set
        Returns:
        this option object
        Throws:
        IllegalArgumentException - when maxThreadCount less than 1