Package org.cadixdev.lorenz.merge
Class MergeConfig
- java.lang.Object
-
- org.cadixdev.lorenz.merge.MergeConfig
-
public final class MergeConfig extends java.lang.Object
Configuration object forMappingSetMerger
. Create new instances viabuilder()
.- Since:
- 0.5.4
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MergeConfig.Builder
This builder class creates instances forMergeConfig
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MergeConfig.Builder
builder()
Create a newMergeConfig.Builder
to create new instances ofMergeConfig
.boolean
equals(java.lang.Object o)
FieldMergeStrategy
getFieldMergeStrategy()
The merge strategy to use for merging field mappings for the merge session.MappingSetMergerHandler
getHandler()
The merge handler for the merge session.MethodMergeStrategy
getMethodMergeStrategy()
The merge strategy to use for merging method mappings for the merge session.int
getParallelism()
The parallelism level to use for thework stealing pool
used for the merge session.int
hashCode()
java.lang.String
toString()
-
-
-
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 toMethodMergeStrategy.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 toFieldMergeStrategy.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 thework stealing pool
used for the merge session. A value of-1
is the default and meansExecutors.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
-
builder
public static MergeConfig.Builder builder()
Create a newMergeConfig.Builder
to create new instances ofMergeConfig
.- Returns:
- A new
MergeConfig.Builder
instance, nevernull
.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-