Class EditionDistance.Builder
java.lang.Object
org.eclipse.emf.compare.match.eobject.EditionDistance.Builder
- Enclosing class:
- EditionDistance
public static class EditionDistance.Builder
extends java.lang.Object
Builder class to configure an EditionDistance instance.
-
Constructor Summary
Constructors Modifier Constructor Description protectedBuilder()Create the builder. -
Method Summary
Modifier and Type Method Description EditionDistancebuild()return the configured instance.EditionDistance.Builderorder(int weight)Specify the weight of any change of reference order between two instances.EditionDistance.Builderuri(int weight)Specify the weight of any change of uri between two instances.EditionDistance.BuilderweightProvider(WeightProvider provider)Configure custom weight provider.
-
Constructor Details
-
Builder
protected Builder()Create the builder.
-
-
Method Details
-
uri
Specify the weight of any change of uri between two instances.- Parameters:
weight- the new weight.- Returns:
- the current builder instance.
-
order
Specify the weight of any change of reference order between two instances.- Parameters:
weight- the new weight.- Returns:
- the current builder instance.
-
weightProvider
Configure custom weight provider.- Parameters:
provider- the weight provider to use.- Returns:
- the current builder instance.
-
build
return the configured instance.- Returns:
- the configured instance.
-