Class MergeConfig


  • public final class MergeConfig
    extends java.lang.Object
    Configuration object for MappingSetMerger. Create new instances via builder().
    Since:
    0.5.4
    • Method Detail

      • getHandler

        public MappingSetMergerHandler getHandler()
        The merge handler for the merge session. Defaults to the default implementation when not specified.
        Returns:
        The merge handler to use for the merge operation. Never null.
        See Also:
        MappingSetMergerHandler
      • getMethodMergeStrategy

        public MethodMergeStrategy getMethodMergeStrategy()
        The merge strategy to use for merging method mappings for the merge session. Defaults to MethodMergeStrategy.STRICT when not specified.
        Returns:
        The merge strategy to use for merging method mappings. Never null.
      • getFieldMergeStrategy

        public FieldMergeStrategy getFieldMergeStrategy()
        The merge strategy to use for merging field mappings for the merge session. Defaults to FieldMergeStrategy.LOOSE when not specified.
        Returns:
        The merge strategy to use for merging field mappings. Never null.
      • getParallelism

        public int getParallelism()
        The parallelism level to use for the work stealing pool used for the merge session. A value of -1 is the default and means Executors.newWorkStealingPool() will be used instead to create the work stealing pool.
        Returns:
        The parallelism level to use for the work stealing pool used for the merge.
        Since:
        0.5.6
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object